4 ms·
I've come to be a big fan of async.auto which allows me to break a large task down into smaller functional steps, define their required dependencies on each oth
by NathanKP 13y ago
I've come to be a big fan of async.auto which allows me to break a large task down into smaller functional steps, define their required dependencies on each other, and then just let async take care of the magic of executing the operations in the correct order, and parallelizing operations when possible.
Do any of you promise and/or generator users know of a good equivalent to async.auto?
I feel like promises and generators have potential but much of my code is based on async.auto and I feel like it would be complicated and painful to try to rewrite that with promises and generators.
- camus2 13y agoYet you still need to write callbacks.Neither async nor promises nor generators solve that issue.Afaik only fibers make the code lighter. ES6, arrow functions will make things less painfull though.
- eknkc 13y agoGenerators actually solve the callback issue: https://github.com/visionmedia/co https://github.com/visionmedia/co