0.1.5 • Published 12 years ago

conclude v0.1.5

Weekly downloads
3
License
-
Repository
-
Last release
12 years ago

Run callbacks when all of loadings occured.

conclude.on('mysql mongo memcache', function(){
	console.log('Ready A')
});
conclude.on(['mysql', 'mongo', 'memcache'], function(){
	console.log('Ready B')
});
conclude.on('mysql', 'mongo', 'memcache', function(){
	console.log('Ready C')
});

var ready = conclude.getReady();
var memcacheReady = conclude.getReady('memcache');

process.nextTick(function(){
	// Notify conclude
	conclude.ready('mysql');
	// Notify with closure
	ready('mongo');
	// Notify with strict closure
	memcacheReady();

}, 3000 * Math.random());
0.1.5

12 years ago

0.1.4

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago