kevin tessier 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos
..
lib 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos
.jscs.json 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos
.jshintignore 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos
.jshintrc 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos
.npmignore 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos
.travis.yml 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos
CHANGELOG.md 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos
CONTRIBUTION.md 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos
LICENSE 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos
Makefile 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos
README.md 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos
bower.json 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos
package.json 5eedee288e install npm %!s(int64=5) %!d(string=hai) anos

README.md

vow-queue NPM version Build Status

vow-queue is a module for task queue with weights and priorities

Installation

Module can be installed using npm:

npm install vow-queue

or bower:

bower install vow-queue

Usage

var Queue = require('vow-queue'),
    queue = new Queue({ weightLimit : 10 });
    
queue.enqueue(function() { // simple function
    return 2 * 2;
});

queue.enqueue(function() { // function returns a promise
    // do job
    return promise;
});

queue.enqueue( // task with custom priority and weight
    function() {
        // do job
    },
    {
        priority : 3, // this task will be started before the previous two
        weight   : 5
    });
    
queue.start(); // starts tasks processing

queue.enqueue(function() { }); // and enqueue yet another task