June 2017
Beginner to intermediate
274 pages
6h 49m
English
It's easy to create a coroutine—all we have to do is use the async keyword on a function and use await anytime we want to call other coroutines, as shown in following code example:

Once we have a coroutine though, we can't just call it to get the ball rolling. If we try to call it, it immediately returns a coroutine object, as shown in the following code example—that's not much use:

Instead, we need to add the coroutine to the asyncio's scheduler as a new task. Next, the scheduler runs arranging for coroutines to execute ...
Read now
Unlock full access