4 ms·
Curious why the authors did not choose to use Babel+ES7 async/await instead of generators. The discussion in this ESDiscuss thread (https://esdiscuss.org/topic
by lf-non 11y ago
Curious why the authors did not choose to use Babel+ES7 async/await instead of generators.
The discussion in this ESDiscuss thread (https://esdiscuss.org/topic/does-async-await-solve-a-real-problem https://esdiscuss.org/topic/does-async-await-solve-a-real-pr...) points to multiple advantages of embracing Async/Await over generators for asynchronous code.
- Joe8Bit 11y agoI can't speak for the author, but it may be for simplicity's sake. Personally I would have still have gone Babel+* but a Babel transpilation pipeline adds a non-negligible level of complexity to a project, especially when it comes to debugging/performance optimisation.