Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

tq

0.2.5 • Public • Published

Build Status

TQ is a flexible, tiny queue library for node.js

Example

var queue = require("tq").create().start();
 

Another variation

var queue = require('tq').queue();
 
 
[
    function() {
        this();
    },
    function() {
        this()
    },
    function() {
        this();
    }
].forEach(queue.push);
 
queue.start();

Api

queue.push

pushes a queue to the end

queue.unshift

pushes a queue to the beginning (next up)

queue.now(callback)

queue.then(callback)

callback queue.wait()

queue.start

starts a queue

queue.stop

stops a queue

Keywords

none

Install

npm i tq

DownloadsWeekly Downloads

337

Version

0.2.5

License

none

Last publish

Collaborators

  • avatar
  • avatar