5 ms·
Promises are coming of age too late, and still have unsolved fundamental issues. Meanwhile, ES6 generators are coming to node v0.12, already in FF and soon to
by ricardobeat 13y ago
Promises are coming of age too late, and still have unsolved fundamental issues.
Meanwhile, ES6 generators are coming to node v0.12, already in FF and soon to be in Chrome; that is a whole different game.
- 1st1 13y agoIt's still better to use promises as an underlying mechanism, so that you can "yield* promise" or "yield* generator". This approach is now implemented in python tulip framework, and it solves the problem of combining the existing callback-based code with coroutines.