JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
asset
example
.gitattributes
LICENSE
README.md
alloy_flow.js
index.html
index_cn.html
package.json

README.md

Install

npm install alloyflow

Usage

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();

Many thanks to

transformjs

Who is using AlloyFlow?

preview

License

This content is released under the MIT License.