align

Align functions for synchronized execution

Align

npm install align

A very simple queue.

var Align = require('align')
var align = new Align(function() {
    console.log('Done');
});
 
align.push(function(next) {
    next('foo');
});
 
align.push(
    function(foonext) {
        console.log(foo === 'foo');
        next('bar')
    },
    function(barnext) {
        console.log(bar === 'bar');
        next();
    }
);
 
align.init();
 

MIT