https://github.com/tdd/async-variations
A demo of various approaches to running async tasks in series, from plain callbacks to async-await
https://github.com/tdd/async-variations
async async-await callbacks javascript js promises
Last synced: 3 months ago
JSON representation
A demo of various approaches to running async tasks in series, from plain callbacks to async-await
- Host: GitHub
- URL: https://github.com/tdd/async-variations
- Owner: tdd
- License: mit
- Created: 2017-06-01T14:32:10.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-01T14:35:37.000Z (about 8 years ago)
- Last Synced: 2025-02-07T15:31:07.056Z (4 months ago)
- Topics: async, async-await, callbacks, javascript, js, promises
- Language: JavaScript
- Size: 2.93 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# async-variations
A demo of various approaches to running async tasks in series, from plain callbacks to async-await.
1. Plain callbacks, using good ol' callback hell :meh:
2. Callbacks, flattened / made more manageable using [Async.js](https://caolan.github.io/async/)
3. Promise chain, using native ES2015 promise wrappers around the native callback-based API
4. Promises as synchronous-looking serial code using ES2017’s `async`/`await`