align
v0.0.1
Published
Align functions for synchronized execution
Downloads
15
Readme
Align
npm install align
A very simple queue.
Example
var Align = require('align')
var align = new Align(function() {
console.log('Done');
});
align.push(function(next) {
next('foo');
});
align.push(
function(foo, next) {
console.log(foo === 'foo');
next('bar')
},
function(bar, next) {
console.log(bar === 'bar');
next();
}
);
align.init();
License
MIT