Awesome
callback_hell
Examples for callback hell
Modules
Examples
Series
parallel
Limitedly parallel
count_lines
count all js files' total line in giving folder.
$ node count_lines/async.js .
/Users/deadhorse/git/callback_hell/parallel/async.js has 36 lines
/Users/deadhorse/git/callback_hell/parallel/callback.js has 33 lines
/Users/deadhorse/git/callback_hell/parallel/eventproxy.js has 30 lines
/Users/deadhorse/git/callback_hell/parallel/generator.js has 21 lines
/Users/deadhorse/git/callback_hell/parallel/proxy.js has 19 lines
/Users/deadhorse/git/callback_hell/parallel/q.js has 31 lines
/Users/deadhorse/git/callback_hell/parallel/step.js has 34 lines
/Users/deadhorse/git/callback_hell/count_lines/async.js has 54 lines
/Users/deadhorse/git/callback_hell/count_lines/callback.js has 39 lines
/Users/deadhorse/git/callback_hell/count_lines/eventproxy.js has 52 lines
/Users/deadhorse/git/callback_hell/count_lines/generator.js has 34 lines
/Users/deadhorse/git/callback_hell/count_lines/q.js has 55 lines
/Users/deadhorse/git/callback_hell/count_lines/step.js has 72 lines
/Users/deadhorse/git/callback_hell/count_lines/utils.js has 15 lines
/Users/deadhorse/git/callback_hell/series/async.js has 19 lines
/Users/deadhorse/git/callback_hell/series/callback.js has 24 lines
/Users/deadhorse/git/callback_hell/series/eventproxy.js has 23 lines
/Users/deadhorse/git/callback_hell/series/generator.js has 22 lines
/Users/deadhorse/git/callback_hell/series/proxy.js has 22 lines
/Users/deadhorse/git/callback_hell/series/q.js has 15 lines
/Users/deadhorse/git/callback_hell/series/step.js has 27 lines
Resource
- Mixu's Node book--Contro flow
- Selecting a javascript flow control solution
- Dailyjs -- New Control Flow Libraries
- Asynchronous JS: Callbacks, Listeners, Control Flow Libs and Promises
- Managing Node.js Callback Hell with Promises, Generators and Other Approaches
More
pull request are welcome! help me to show more examples and more solutions!
License
MIT