| ▲ | ahoka 4 hours ago | |
IIRC generators and co-routines are equivalent in a sense that you can implement one with the other. | ||
| ▲ | Sharlin 2 hours ago | parent [-] | |
Generators are a subset of coroutines that only yield data in one direction. Full coroutines can also receive more input from the caller at every yield point. | ||