... continued
Continues the discussion on generator based coroutines.
We'll cover the following...
Generator-based Coroutine Example
The simplest generator based coroutine we can write is as follows:
Example Coroutine
@asyncio.coroutine
def do_something_important():
yield from asyncio.sleep(1)
The coroutine sleeps for one second. Note the decorator and the use of ...