1.0.3 • Published 8 years ago
node-series v1.0.3
node-series
Lightweight series function for node and browser
Installation
npm install node-series --save
Usage
var series = require('node-series');
series(function (next) {
setTimeout(function () {
console.log(1);
next();
}, 1000);
}, function (next) {
setTimeout(function () {
console.log(2);
next();
}, 1000);
}, function (next) {
setTimeout(function () {
console.log(3);
next();
}, 1000);
});
Supported browsers
IE8+