https://github.com/lourd/node-async-iterator-playground
A small demo for understanding how the new async iterators work in Javascript
https://github.com/lourd/node-async-iterator-playground
async-iterators es2018 javascript
Last synced: about 1 year ago
JSON representation
A small demo for understanding how the new async iterators work in Javascript
- Host: GitHub
- URL: https://github.com/lourd/node-async-iterator-playground
- Owner: lourd
- Created: 2017-11-01T22:37:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-01T22:53:58.000Z (over 8 years ago)
- Last Synced: 2025-01-29T12:47:02.699Z (over 1 year ago)
- Topics: async-iterators, es2018, javascript
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Installation
```sh
git clone https://github.com/lourd/node-async-iterator-playground
cd node-async-iterator-playground
node --harmony_async_iteration test.js
```
### Debugging
1. `node --inspect-brk --harmony_async_iteration test.js`
2. Open Chrome, go to `chrome://inspect`
3. `test.js` should be listed under the "Remote Target" section. Click on the **inspect** link
If you're a VSCode user, you can also open the project and run the debugger from within `test.js` to step through the code in your editor.
## Prior Art
* [The Inspiration](https://twitter.com/stephenbelanger/status/925558288439218176)
* [The Proposal](https://github.com/tc39/proposal-async-iteration)
* [Further Reading](https://jakearchibald.com/2017/async-iterators-and-generators/)