How well do you know your async func plumbing? async function a() { return await Promise.resolve("a"); } async function b() { return Promise.resolve("b"); } a().then(value => console.log(value)); b().then(value => console.log(value)); What's the output? (No spoilers!)
-
-
I suspected that was the case (that news was part of what lead to the tweet), thanks for confirming!!
-
Of course, that optimization only applies if the promise being returned/awaited is a native one (as it is in the poll).
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.