UNPKG

atbar

Version:

Async callback manager for javascript in nodejs and browser

17 lines 460 B
/* coffee -cb /opt/node/bb/dev/node_modules/atbar/atbar.cof coffee -cb /opt/node/bb/dev/node_modules/atbar/tests/parallel-nojoin.cof */var atbar; atbar = require('atbar'); atbar.run('trace', function() { this._(function() { setTimeout(this.$(), 2000); return setTimeout(this.$(['abc']), 1000); }); return this._({ label: 'cb', nojoin: true }, function() { return console.log('callback data: ' + JSON.stringify(this.data)); }); });