countn
countn is a simple control flow for counting callbacks.
Installation
$ npm install countn
Basic Example
Here is a example of simple async scheduling. Where we have subscribed to execute some code after all concurent tasks have finished.
var cb =
Example with error call
Here is a example when error occured
var cb2 =
What's it good for?
countn is not ment to replace any control flow library, rather as i am still counting callbacks, i just wanted a simple library for a little suggar on top of it.
And i believe its much readable having everything in same hierarchy instead of complex nesting structures.
Running tests
$ npm install
$ npm test
Authors
License
MIT