https://github.com/stephanhoyer/generators-talk
Files for a talk about ES6 generators
https://github.com/stephanhoyer/generators-talk
Last synced: 11 months ago
JSON representation
Files for a talk about ES6 generators
- Host: GitHub
- URL: https://github.com/stephanhoyer/generators-talk
- Owner: StephanHoyer
- Created: 2014-01-14T11:22:41.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:18:54.000Z (over 2 years ago)
- Last Synced: 2025-01-24T13:12:43.360Z (over 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a talk I held on the leipzig.js. It's a brief introduction on
generators and how they make writing asyncron code fun again.
How
---
The intro consists of 10 steps which I demonstrated in order.
For step 1 and 2 I started the console and required the files according the
step number and then created a generator with the provided
generator-functions. The console was started using
[nvm](https://github.com/creationix/nvm)
nvm run 0.11 --harmony-generators
From step 3 on I simply ran the file with node
nvm run 0.11 --harmony-generators 10.js