2 ms·
Some of those "things" you counted are based on generators, which let you to do exactly what you want. Example: https://github.com/spion/async-compare/blob/mas
by spion 13y ago
Some of those "things" you counted are based on generators, which let you to do exactly what you want.
Example: https://github.com/spion/async-compare/blob/master/examples/promises-bluebird-generator.js https://github.com/spion/async-compare/blob/master/examples/...
With promises, generators are not really necessary -- especially if you add arrow function syntax into the mix. https://gist.github.com/spion/8254661 https://gist.github.com/spion/8254661
(Note: that particular method in doxbee has long since been refactored to something saner with better separation of concerns :)