Kévin Tessier 04fab6ba46 install gulp 6 jaren geleden
..
lib 04fab6ba46 install gulp 6 jaren geleden
.jscs.json 04fab6ba46 install gulp 6 jaren geleden
.jshintignore 04fab6ba46 install gulp 6 jaren geleden
.jshintrc 04fab6ba46 install gulp 6 jaren geleden
.npmignore 04fab6ba46 install gulp 6 jaren geleden
.travis.yml 04fab6ba46 install gulp 6 jaren geleden
CHANGELOG.md 04fab6ba46 install gulp 6 jaren geleden
CONTRIBUTION.md 04fab6ba46 install gulp 6 jaren geleden
LICENSE 04fab6ba46 install gulp 6 jaren geleden
Makefile 04fab6ba46 install gulp 6 jaren geleden
README.md 04fab6ba46 install gulp 6 jaren geleden
bower.json 04fab6ba46 install gulp 6 jaren geleden
package.json 04fab6ba46 install gulp 6 jaren geleden

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