atbar
Version:
Async callback manager for javascript in nodejs and browser
14 lines • 360 B
JavaScript
/*
coffee -cb /opt/node/bb/dev/node_modules/atbar/atbar.cof
coffee -cb /opt/node/bb/dev/node_modules/atbar/tests/hello-world.cof
*/var atbar;
atbar = require('atbar');
atbar.options = 'trace';
atbar.run(function() {
this._(function() {
return setTimeout(this.$(), 2000);
});
return this._(function() {
return console.log('hello world');
});
});