batch
Simple async batch
Installation
$ component install component/batch
API
var Batch = require('batch')
, batch = new Batch;
ids.forEach(function(id){
batch.push(function(done){
User.get(id, done);
});
});
batch.on('progress', function(e){
// result of the ith job
console.log(e.percent)
});
batch.end(function(err, users){
});
License
MIT