Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Implementing Async and Await with Generators | Better HN
Implementing Async and Await with Generators
(javascript.works-hub.com)
1 points · by
flaviab
· 8y ago · 1 comment
Comments
[–]
asprouse
8y ago
CO
https://github.com/tj/co
in popularized this technique a few years ago. It implements something similar to the function you present here. Babel actually transforms async/await to generators (
https://babeljs.io/docs/en/babel-plugin-transform-async-to-g...
) when targeting environments that don't have native async/await support.