Asynchronous stack traces: why `await` beats `.then()` https://mathiasbynens.be/notes/async-stack-traces …
async/await is more than just syntax sugar over promises!
Huh? That does not follow. Also, the optimization in the article only applies to stack traces.
-
-
What I meant was, if you need the return value, it doesn't matter if you use await or .then; If you don't, stick with await :)
-
…and AFAICT the return value being used doesn’t enable new optimizations, hence my earlier comment:https://twitter.com/mathias/status/916730183339724801 …
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.