ee-waiter
v0.1.1
Published
control flow: parallel asynchronous job execution
Downloads
15
Readme
parallel control flow library
var Waiter = require( "ee-waiter" );
var waiter = new Waiter( function( err ){
if ( err ) console.log( "there was an erorr:", err );
...
} );
waiter.add( function( cb ){
// do something ..
cb();
} );
waiter.add( function( cb ){
// do something ..
cb();
} );
// start all previosuly defined jobs in parallel
waiter.start();