0.2.7 • Published 5 years ago

dank-queue v0.2.7

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

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.
0.2.7

5 years ago

0.2.6

10 years ago

0.2.5

11 years ago

0.2.4

11 years ago

0.2.3

11 years ago

0.2.2

12 years ago

0.2.1

12 years ago

0.2.0

12 years ago

0.1.0

12 years ago