1.0.1 • Published 9 years ago
promise-parallel v1.0.1
promise-parallel
A helper for performing Promises in parallel, does not bail if one of them fails, it doe them all, then returns the fulfilled values.
Installation
This module is installed via npm:
$ npm install promise-parallel
Example Usage
var parallel = require('promise-parallel');
parallel([
Promise.resolve(true),
Promise.reject('baah')
]).catch(function(result) {
console.log(result); //=> true, [Error: baah]
});
parallel({
a: Promise.resolve(true),
b: Promise.reject('baah')
}).catch(function(result) {
console.log(result); //=> {a: true, b: [Error: baah]}
});