hr.queue

Async tasks queue for HappyRhino


License
Apache-2.0
Install
npm install hr.queue@1.0.0

Documentation

hr.queue Build Status

Async jobs queue

Installation

$ npm install hr.queue

Documentation

Creation

var Queue = require("hr.queue");

var queue = new Queue();

Defer a task

queue.defer(function() {
    return runAsyncStuff();
})
.then(function() {
    // This is called once the task has been runned
});