0.1.0 • Published 14 years ago
async-queue v0.1.0
AsyncQueue
Installation
npm install async-queueExample
var AsyncQueue = require('async-queue');
new AsyncQueue(function (err, job) {
if (err) job.fail(err);
setTimeout(function () {
console.log('First job executed')
job.success();
}, 500);
}, function (err, job) {
console.log('Second job executed');
job.success();
}).run();Output
First job executed
Second job executedRun Tests
npm install
npm test0.1.0
14 years ago
