0.1.5 • Published 11 years ago

conclude v0.1.5

Weekly downloads
3
License
-
Repository
-
Last release
11 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

11 years ago

0.1.4

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago