A simple implementation of async.parallel
$ npm install lllvar 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']
})$ npm testMIT