Asyncio RecipesJune 5, 2021
Book Name: asyncio Recipes
Author: Mohamed Mustapha Tahrioui
File size: 3.3 MB
File format: PDF, ePub
Asyncio Recipes Book Description:
Get the most out of asyncio and find answers to your most upsetting Python programming problems. This book offers a pragmatic collection of recipes by going beyond online resources and docs to offer guidance on using this intricate library. As such, you are going to see how to improve application performance and run computationally intensive applications faster.
Asyncio Recipes starts with examples illustrating the primitives that arrive with the asyncio library, also clarifies how to establish if asyncio is the right choice for your application. It reveals how to use asyncio to yield performance gains without multiple threads, and describes common mistakes and how to prevent them. Later chapters cover error-handling, testing, and debugging. By the conclusion of this book, you’ll know how asyncio runs behind the scenes, and also be confident enough to donate to asyncio-first projects.
What You Will Learn
- Discover quirky APIs such as the event loop coverages
- Write asyncio code using native coroutines
- Utilize the ast module to locate legacy asyncio code
- Work with context vars
- See exactly what an async context manager is and why a lot of asyncio APIs use them
Who This Book Is For
Experienced Python programmers or amateurs who want to know asyncio and accelerate their applications by adding concurrency for their toolkit.