https://github.com/tc39/ecmascript-asyncawait
Async/await for ECMAScript
https://github.com/tc39/ecmascript-asyncawait
Last synced: 11 days ago
JSON representation
Async/await for ECMAScript
- Host: GitHub
- URL: https://github.com/tc39/ecmascript-asyncawait
- Owner: tc39
- License: apache-2.0
- Archived: true
- Created: 2014-01-28T22:24:00.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2023-02-02T16:38:58.000Z (about 2 years ago)
- Last Synced: 2024-07-31T22:12:37.499Z (9 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
- super-awesome-chat-app-react - Async/await
- awesome-reactc3-bulma - Async/await
- styled-awesomeness - Async/await
- our-awesome-app - Async/await
- awesome-cra-v2 - Async/await
- awesome-idea-box - Async/await
- awesome-planner - Async/await
- awesome-form - Async/await
- awesome-playlists - Async/await
- wall-of-awesomeness - Async/await
- my-awesome-test-repo - Async/await
- awesome-ux - Async/await
- awesome-login-practica- - Async/await
- awesome-robofriends - Async/await
- myawesomeapp - Async/await
- awesomedribble - Async/await
- awesome-web - Async/await
- awesome - Async/await
- style-awesome - Async/await
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
```