A versatile async flow control module for node
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
README.md
index.js
package.json

README.md

node-dank-queue

A versatile async helper utility lacking documentation AND tests.

example

var Queue = require("dank-queue");

(new Queue())

(function (next) {
	setTimeout(function () {
		return next('hello');
	}, 1000);
})

(function (what, next) {
	console.log('%s world', what);
})

();

//or

Queue.queue([
	function (next) {
		setTimeout(function () {
			return next('cold');
		},1000);
	}
	, function (what, next) {
		console.log('%s beer', what);
	}
]).execute();

//or

var q = new Queue();

q.add(function (next) {
	setTimeout(function () {
		return next('red');
	});
});


q.add(function (what, next) {
	console.log('%s wine', whate);
});


q.execute();

//and there is more but this is all for now.