This commit is contained in:
jasmaa 2019-06-14 08:36:05 -04:00
commit dfb4f00ced
31 changed files with 1209 additions and 49 deletions

View file

@ -458,7 +458,7 @@ If we don't catch the error there, then, as usual, it falls through to the outer
## Summary
- Generators are created by generator functions `function*(…) {…}`.
- Generators are created by generator functions `function* f(…) {…}`.
- Inside generators (only) there exists a `yield` operator.
- The outer code and the generator may exchange results via `next/yield` calls.