Skip to content

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

License

Notifications You must be signed in to change notification settings

kopertop/eventq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published