4 ms·
Good stuff. This will come in handy if node.js 0.12 takes much longer. Watching the use of generators in JavaScript and especially node.js is going to be very
by eldude 13y ago
Good stuff. This will come in handy if node.js 0.12 takes much longer.
Watching the use of generators in JavaScript and especially node.js is going to be very exciting over the coming years. We're excited at LinkedIn because we write a lot of node.js, and control flow is always being discussed: step, async, stepup, promises, and async generators look to solve a lot of that.
Also, checkout the AGen formal spec[1] for asynchronous generators. Raynos and I put it together recently to encourage interoperability between async generator solutions, and we're both using it in personal projects.[2]
[1] https://github.com/AsynchronousGenerators/agen-spec https://github.com/AsynchronousGenerators/agen-spec
[2] https://github.com/Raynos/gens https://github.com/Raynos/gens
- bnjmn 13y agoThanks for the links! I hope regenerator can make those projects work in environments beyond node.js.