Re:V8 adds support for top-level await
by tudorconstantin on Tuesday September 24, 2019 @10:53PM
(#21067138)
Since an async function is simply a function that returns a promise is there actually any difference between using async/await and using promises explicitly?
[ Parent
| on HN ]
Re:V8 adds support for top-level await
by dboreham on Tuesday September 24, 2019 @11:07PM
(#21067219)
It takes longer to boil your brain.
Re:V8 adds support for top-level await
by jinglebells on Wednesday September 25, 2019 @06:18AM
(#21069332)
If you're compiling to ES2016 or lower, it will turn the promises into state machines.
Re:V8 adds support for top-level await
by eurasiantiger on Wednesday September 25, 2019 @02:51AM
(#21068371)
Terseness and readability towards less asynchronously minded folk