Slide 26
Slide 26 text
Generator
Generators, also known as semi-coroutines, are a subset of
coroutines
Coroutines can control where execution continues immediately
after they yield, while Generators cannot, instead transferring
control back to the generator's caller
The yield statement in a generator does not specify a coroutine
to jump to, but rather passes a value back to a parent routine
(From Wikipedia)