tq
tiny queue
Last updated 13 years ago by architectd .
Repository · Original npm · Tarball · package.json
$ cnpm install tq 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.2.5                                ...           latest (13 years ago)

12 Versions

  • 0.2.5                                ...           13 years ago
  • 0.2.4                                ...           13 years ago
  • 0.2.3                                ...           13 years ago
  • 0.2.2                                ...           13 years ago
  • 0.2.1                                ...           13 years ago
  • 0.2.0                                ...           13 years ago
  • 0.1.2                                ...           13 years ago
  • 0.1.0                                ...           13 years ago
  • 0.0.4                                ...           14 years ago
  • 0.0.3                                ...           14 years ago
  • 0.0.2                                ...           14 years ago
  • 0.0.1                                ...           14 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (2)

Copyright 2013 - present © cnpmjs.org | Home |