Also, my pet peeve: there is no language that needs await/defer as much as JS.
EDIT: Maybe it could be done with macros, which is on its way.
http://wiki.ecmascript.org/doku.php?id=harmony:generators
is a more general abstraction, which allows expressing async/await-type constructs: http://taskjs.org/
Also, my pet peeve: there is no language that needs await/defer as much as JS.
EDIT: Maybe it could be done with macros, which is on its way.