jio

A promise lib.

jio

A simple flow-control library.

npm install jio

var jio = require('jio');
var sleep = function (v) {
    console.log('sleep '+v+'s');
    setTimeout(this.next, v*1000);
    return jio.PAUSE;
};
var addmax= jio(
      [Math.max, sleep]
    , function (v) {
        return v+1;
    }
);
addmax.i(2, 3)
.o(function (r) {
    console.log(r);
});

[ISC] license, which is BSD-like and with simpler text.