eventq

1.0.2 • Public • Published

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!');
});

Readme

Keywords

Package Sidebar

Install

npm i eventq

Weekly Downloads

5

Version

1.0.2

License

MIT

Last publish

Collaborators

  • kopertop