ju Queue
For proper coding and to run sequential asynchronous function.
Installation
$ npm install juqueue
Usage
var juQueue = require('juqueue');
juQueue.set({
running: true,
pauseTime: 1000
});
juQueue.set("running", true);
juQueue.set("pauseTime", 1000);
juQueue.get({
ecb: null,
list: [
function (e) {
e.next();
},
function (e) {
}
]
});
var juQueue = require('juqueue');
juQueue.get({
list: [
function (e) {
e.next({ name: "test", model: "test", args: [1, 2] });
},
function (e) {
e.next();
},
function test(e, one, two) {
var modelValue = e.model;
}
]
});
Methods
juQueue.set([options])
or juQueue.set(key, value)
Parameters:
Or
juQueue.get([options])
Parameters:
e.next([options])
Parameters:
Examples
This example shows the most basic way of usage.
License
This software is free to use under the JosephUz. See the LICENSE file for license text and copyright information.