A simple implementation of async.parallel
npm install lllA simple implementation of async.parallel
``sh`
$ npm install lll
`js`
var parallel = require('lll');
parallel([
function (cb) {
setTimeout(function () {
cb(null, 'one');
});
},
function (cb) {
setTimeout(function () {
cb(null, 'two');
});
}
], function (err, result) {
console.log(result)
// => ['one', 'two']
})
`sh``
$ npm test
MIT