Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
phpnode
· 10y ago · 0 comments
Babel can transform async functions into Bluebird coroutines, so the best of both worlds -
https://www.npmjs.com/package/babel-plugin-transform-async-t...
Comments
[–]
esailija
10y ago
Yes but with this you lose the powerful features I just mentioned: automatic resource cleanup[1], cancellation, yield handlers.. don't you?
1.
https://github.com/petkaantonov/bluebird/issues/1014
[–]
phpnode
OP
10y ago
No I think those should work with async functions as it is literally just translating `async` -> `yield`, but worth investigating.