1.1.0 • Published 9 years ago
batch-then v1.1.0
batch-then
Run multiple functions in parallel with concurrency. Only supports functions that return promises.
var Batch = require('batch-then');
var batch = new Batch();
batch.concurrency(2);
batch.push(function () {
return Promise.resolve(1);
});
batch.push(function () {
return Promise.resolve(2);
});
batch.push(function () {
return Promise.resolve(3);
});
batch.then( => );