November 2025
Intermediate to advanced
202 pages
4h 24m
English
Asynchronous coroutines are Python’s current state-of-the-art cooperative multitasking feature. In this chapter we are going to formalize our understanding of asyncio, starting with the concepts required to work with the module, and then use those concepts in a working example. Later, we’ll discuss some advanced techniques such as asynchronous iterators, comprehensions, and unit testing. Next, two alternatives to the standard library will be presented, since coroutines can be implemented in different ways. This chapter provides the understanding necessary to design and develop the more complex solutions that will be presented in Chapters 7 to 10, and covers the following main topics:
Read now
Unlock full access