12 ms·
I wrote a detailed comparison of JS async coding patterns here (emphasis on ES6 generators): http://spion.github.io/posts/analysis-generators-and-other-async-p
by spion 13y ago
I wrote a detailed comparison of JS async coding patterns here (emphasis on ES6 generators):
http://spion.github.io/posts/analysis-generators-and-other-async-patterns-node.html http://spion.github.io/posts/analysis-generators-and-other-a...
Unfortunately most patterns that consolidate error handling also result with useless stack traces, or have to resort to performance-reducing trickery (Q). This also includes generators.
- swannodette 13y agoThis is another problem with promises is the the mangling of the stack trace. In my version the stack traces are more or less left clean since you don't have to wrap at every step of your async pipeline.