Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/henrahmagix/yield-test
https://github.com/henrahmagix/yield-test
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/henrahmagix/yield-test
- Owner: henrahmagix
- Created: 2014-06-26T16:36:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-26T16:54:40.000Z (over 10 years ago)
- Last Synced: 2024-12-11T04:25:08.717Z (about 1 month ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# yield-test
A small testing station for learning about Generators.
## Getting Started
```bash
npm install
grunt
```## What does it do?
This little thing explains how `yield` works.
Below, `async` should be outputted before `end` if `yield` is working. If it's not working, `async` will be outputted *after* `end`.
`async` is blocking the thread so `end` can't run *until it yields*. No matter what delay you give to `async` it will always block the thread if `yield` is working correctly.
```bash
$: grunt
Running "shell:main" (shell) task
start
async
end
sync
```