3 ms·
Really interested in this. Played around a bit with the generator functions and being able to replace straight callbacks with yields made the code so much clea
by dlau1 13y ago
Really interested in this.
Played around a bit with the generator functions and being able to replace straight callbacks with yields made the code so much cleaner and more readable.
Unfortunately, interoperability with callback/promise based libraries is a bit clunky.
- eldude 13y agoSee AGen Spec[1] & gens[2], which implements it. [1] https://github.com/AsynchronousGenerators/agen-spec https://github.com/AsynchronousGenerators/agen-spec [2] https://github.com/Raynos/gens https://github.com/Raynos/gens
- olegp 13y agoHave you looked at fibers? We've had a very good experience with them at https://starthq.com https://starthq.com Here's a talk my co-founder Alex gave on it: http://youtu.be/pmyDJnEza6A http://youtu.be/pmyDJnEza6A