4 ms·
Why not use harmony generators? Generators are provided by V8, don't require an external fibers extension (i.e. hack), and will be available in the next node s
by chrisohara 13y ago
Why not use harmony generators?
Generators are provided by V8, don't require an external fibers extension (i.e. hack), and will be available in the next node stable via `node --harmony-generators`.
Here's an example for those interested: https://github.com/visionmedia/co https://github.com/visionmedia/co
- lucio 13y agonode-fibers is under the hood, and works on the actual node stable. I hope ES6 generators -when stable- will provide similar tools, so wait.for will be based on ES6 generators.