Created
August 16, 2014 21:11
-
-
Save watson/ab4bbe84ad51dec0dab0 to your computer and use it in GitHub Desktop.
Thoughts on a new parallel callback API module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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