Skip to content

Instantly share code, notes, and snippets.

@watson
Created August 16, 2014 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save watson/ab4bbe84ad51dec0dab0 to your computer and use it in GitHub Desktop.
Save watson/ab4bbe84ad51dec0dab0 to your computer and use it in GitHub Desktop.
Thoughts on a new parallel callback API module
var foo = require('foo');
var next = foo(function (err, results) {
err // => the first error thrown
results // => array of all the results
});
doSomething(next());
doSomethingElse(next());
anotherThing(next());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment