Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
dostuffEmitter.on('task1', function (callback) {
dostuffEmitter.emit('task3', x, callback);
dostuffEmitter.on('task2', function (x, callback) {
dostuffEmitter.emit('finish', y, callback);
dostuffEmitter.on('task3', function (y, callback) {
dostuffEmitter.emit('task2', z, callback);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment