Skip to content

thenables/batch-then

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

batch-then

NPM version Build status Test coverage Dependency Status License Downloads

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( => );

About

Run multiple functions in parallel with concurrency

Resources

License

Stars

Watchers

Forks

Packages

No packages published