We proposed async/await (and released transpiler) in '11: https://news.ycombinator.com/item?id=2512635
@ErikArvidsson @peter_hal @domenic played the long game!
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
: you're free to use whatever libraries you chose (as always). Same for CSS rounded corners.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
: "reclaiming memory"? Are you concerned w/ the object overhead of Promises?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
: async/await make the flow control clear again. That's the point of getting syntax for Promises!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
: the alternatives aren't good: callbacks? More un-schedulable, main-thread-blocking APIs?
-
As I understand it, engines can optimize away the overhead of promises in many await use situations.
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.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.
Node 7.6 has async/await! Here is a quick run down on how async/await works: