Package Exports
- multicb
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (multicb) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
MultiCB
Simple way to aggregate multiple node-style callbacks
var multicb = require('multicb')
// default usage
var done = multicb()
doAsync(done())
doAsync(done())
doAsync(done())
done(function(err, results) {
console.log(err) // => undefined
console.log(results) /* =>
[
[undefined, 'foo'],
[undefined, 'bar'],
[undefined, 'baz']
]
*/
})
// pluck argument
var done = multicb({ pluck: 1 })
doAsync(done())
doAsync(done())
doAsync(done())
done(function(err, results) {
console.log(err) // => undefined
console.log(results) /* =>
[
'foo',
'bar',
'baz'
]
*/
})