1.0.2 • Published 8 years ago

eventq v1.0.2

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

eventq

A simple Node.js "Event Q", which lets you trigger synchronous tasks to run after a set of asynchronous tasks has completed.

Usage

Simple Usage:

// Create a new EventQ, with default options
var EventQ = require('eventq');
var q = new EventQ();
items.forEach(function(item){
	// Add to our counter
	q.add();
	my_async_function_with_callback(item, function(){
		// Pop one off our counter
		q.done();
	});
});
q.on('ready', function(){
	console.log('Ready!');
});
1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago