tc39/proposal-async-await

Async/await for ECMAScript

HTML

1,569

148 commits

updated Feb 2, 2023

See the code

README

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

tc39/proposal-async-await

Async/await for ECMAScript

HTML

1,569

148 commits

updated Feb 2, 2023

See the code

README

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

Significant stargazers

Marcos Cáceres

653 followers · starred May 2015

Xuan Huang (黄玄)

7,885 followers · starred Jun 2020

Sebastian

4,851 followers · starred Nov 2014

Amjad Masad

2,452 followers · starred Mar 2014