Skip to content

Instantly share code, notes, and snippets.

@tristanls
Last active August 29, 2015 14:02
Show Gist options
  • Save tristanls/f86d7c0989230db927a9 to your computer and use it in GitHub Desktop.
Save tristanls/f86d7c0989230db927a9 to your computer and use it in GitHub Desktop.
dostuffEmitter.on('task2', function (x, callback) {
if (error) {
dostuffEmitter.emit('error', error);
return;
}
dostuffEmitter.emit('telemetry', someMetricHere);
dostuffEmitter.emit('task3', y, callback);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment