Can I send msgs to the outputs asynchron?
Like this with e.g. four outputs:
this.on('input', function(msg) {
this.send([ msg, null, null, null ]);
/* do some time consuming work */
this.send([ null, msg, null, null ]);
/* do some time consuming work */
this.send([ null, msg, msg, null ]);
/* do some time consuming work */
this.send([ null, msg, null, null ]);
/* do some time consuming work */
this.send([ msg, msg, msg, msg ]);
});
When I do it like this, all the msg sends are queued and send when the input callback is done.
Aucun commentaire:
Enregistrer un commentaire