Intent to implement async/await functions

3730 views
Skip to first unread message

Daniel Ehrenberg

unread,
May 9, 2016, 5:11:05 PM5/9/16
to v8-u...@googlegroups.com, blink-dev
Contact emails
litt...@chromium.org

Spec
https://tc39.github.io/ecmascript-asyncawait/

Summary
Async functions make it easy to write code which needs to "block" on certain asynchronous events JavaScript.

Motivation
Async/await does this by providing a simpler and more ergonomic way to use Promises. To block on a value, use the 'await' keyword. Async/await can be implemented based on a desugaring to generators, as described in the following design doc: https://docs.google.com/document/d/1K38ct2dsxG_9OfmgErvFld4MPDC4Wkr8tPuqmSWu_3Y/edit?usp=sharing

Interoperability Risk

None; in development in Firefox, Edge and Safari. All implementations in progress target correctness with respect to the specification.


Compatibility Risk

The draft specification creates new contextual keywords, but these do not change the behavior of any existing code and just allow new patterns which would have previously been syntax errors. Therefore, the compatibility risk should be minimal.


Ongoing technical constraints
None

Tracking bug
Dev bug: https://bugs.chromium.org/p/v8/issues/detail?id=4483

Link to entry on the Chrome Platform Status
https://www.chromestatus.com/features/5643236399906816

Requesting approval to ship?

No

PhistucK

unread,
May 28, 2016, 3:07:31 AM5/28/16
to jrap...@gmail.com, blink-dev, v8-users
I love this.

By the way, why are there two ChromeStatus entries?


PhistucK

On Thu, May 12, 2016 at 6:34 PM, <jrap...@gmail.com> wrote:
Super excited for this to land in V8, and then get integrated into NodeJS!  Any timeline on when this will be released?

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

Caitlin Potter

unread,
May 30, 2016, 6:29:20 PM5/30/16
to v8-users, blin...@chromium.org
LGTM1 (just kidding)

Sorry for not getting the launch process ball rolling myself months ago, that probably should have happened.

PhistucK

unread,
May 31, 2016, 1:58:56 AM5/31/16
to Caitlin Potter, v8-users, blink-dev
So which one should be removed? Can you merge their content in a reasonable way and remove one of them?


PhistucK

--

Daniel Ehrenberg

unread,
Jun 3, 2016, 9:25:02 AM6/3/16
to PhistucK, Caitlin Potter, v8-users, blink-dev
Thanks for pointing this out, PhistucK. Now there's only one entry at
https://www.chromestatus.com/feature/5643236399906816 .

Dan
Reply all
Reply to author
Forward
0 new messages