Stage 4
Classification: API Change Syntactic Change
Human Validated: KW
Title: Async functions
Authors: Brian Terlson
Champions: Brian Terlson
Last Presented: July 2016
Stage Upgrades:
Stage 1: 2014-04-09
Stage 2: 2015-08-02
Stage 2.7: NA
Stage 3: 2015-09-29
Stage 4: 2015-10-08
Last Commit: 2020-11-19
Topics: async iterators
Keywords: promises generator asynchronous
GitHub Link: https://github.com/tc39/proposal-async-await
GitHub Note Link: https://github.com/tc39/notes/blob/HEAD/meetings/2016-07/jul-28.md#10iv-async-functions
Proposal Description:
Async Functions for ECMAScript
The introduction of Promises and Generators in ECMAScript presents an opportunity to dramatically improve the language-level model for writing asynchronous code in ECMAScript. The spec text can be found here.
This proposal is implemented in a regenerator which can compile ES5 code containing async
and await
down to vanilla ES5 to run in existing browsers and runtimes.
This repo contains a complete example using a large number of the features of the proposal. To run this example:
npm install
regenerator -r server.asyncawait.js | node