Chapter 17. Implementing Asynchronous Programming in Python
This chapter will introduce you to the asyncio
module in Python. It will cover the idea behind this new concurrency module, which utilizes event loops and coroutines and provides an API that is as readable as synchronous code. In this chapter, we will also discuss the implementation of asynchronous programming, in addition to threading and multiprocessing through the concurrent.futures
module. During this process, we will cover the application of asynchronous programming via the most common uses of asyncio
, including asynchronous input/output and avoiding blocking tasks.
The following topics will be covered in this chapter:
- The fundamental elements of implementing asynchronous programming using
asyncio
- The framework for asynchronous programming provided by
asyncio
- The
concurrent.futures
module and its usage, in respect toasyncio