npm install alloyflow
flow of time
var alloyFlow = new AlloyFlow({
workflow: [
{
work: function () { },
start: 0
},{
work: function () { },
start: 1500
},{
work: function () { },
start: [720, 1000, 400, 6000]
}
]
});
alloyFlow.start();
flow of task
var alloyFlow = new AlloyFlow({
workflow: [
function () {
alloyFlow.next("msg");
},
function (msg) {
alloyFlow.next("msg", 2000);
},
function (msg) {
}
]
});
alloyFlow.start();
This content is released under the MIT License.