Skip to content

Instantly share code, notes, and snippets.

@watson
Created August 16, 2014 21:11
Show Gist options
  • Select an option

  • Save watson/ab4bbe84ad51dec0dab0 to your computer and use it in GitHub Desktop.

Select an option

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