Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tc39/proposal-async-await
Async/await for ECMAScript
https://github.com/tc39/proposal-async-await
Last synced: 3 months ago
JSON representation
Async/await for ECMAScript
- Host: GitHub
- URL: https://github.com/tc39/proposal-async-await
- Owner: tc39
- License: apache-2.0
- Archived: true
- Created: 2014-01-28T22:24:00.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2023-02-02T16:38:58.000Z (almost 2 years ago)
- Last Synced: 2024-07-31T22:12:37.499Z (5 months ago)
- Language: HTML
- Homepage: https://tc39.es/proposal-async-await/
- Size: 308 KB
- Stars: 1,580
- Watchers: 112
- Forks: 104
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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](https://tc39.github.io/ecmascript-asyncawait).
This proposal is implemented in a [regenerator](https://github.com/facebook/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:
```Shell
npm install
regenerator -r server.asyncawait.js | node
```