... continued
Continues the discussion on coroutines.
We'll cover the following...
You would realize that in the previous sections you were essentially dealing with coroutines when sending and receiving data. Similar to a generator, a coroutine executes in response to send()
and next()
calls. Simply creating a coroutine will not execute it. Let's revisit a coroutine example.
Coroutine Example
In Python 2.5 three APIs were added for generator ...