Using Asyncio in Python
Subtitle: Understanding Python’s Asynchronous Programming Features
Publisher: O'Reilly
Published: 2020
Place of publication: Sebastopol, CA, USA
Language: eng
Format: ebook
Number of pages: 166
ISBN-13: 9781492075332
Copyright date: 2020
First sentence: The most common question I receive about Asyncio in Python 3 is this: “What is it, and what do I do with it?”
Table of contents: label: Preface
pagenum: vii; label: 1
title: Introducing Asyncio
pagenum: 1; title: The Restaurant of ThreadBots
pagenum: 1; title: Epilogue
pagenum: 6; title: What Problem Is Asyncio Trying to Solve?
pagenum: 6; label: 2
title: The Truth About Threads
pagenum: 9; title: Benefits of Threading
pagenum: 10; title: Drawbacks of Threading
pagenum: 11; title: Case Study: Robots and Cutlery
pagenum: 14; label: 3
title: Asyncio Walk-Through
pagenum: 21; title: Quickstart
pagenum: 22; title: The Tower of Asyncio
pagenum: 28; title: Coroutines
pagenum: 31; title: * The New async def Keywords
pagenum: 32; title: * The New await Keyword
pagenum: 34; title: Event Loop
pagenum: 37; title: Tasks and Futures
pagenum: 39; title: * Create a Task? Ensure a Future? Make Up Your Mind!
pagenum: 42; title: Async Context Managers: async with
pagenum: 46; title: * The contextlib Way
pagenum: 47; title: Async Iterators: async for
pagenum: 50; title: Simpler Code with Async Generators
pagenum: 53; title: Async Comprehensions
pagenum: 55; title: Starting Up and Shutting Down (Gracefully!)
pagenum: 57; title: * What Is the return_exceptions=True for in gather()?
pagenum: 61; title: * Signals
pagenum: 63; title: * Waiting for the Executor During Shutdown
pagenum: 68; label: 4
title: 20 Asyncio Libraries You Aren’t Using (But…Oh, Never Mind)
pagenum: 75; title: Streams (Standard Library)
pagenum: 76; title: * Case Study: A Message Queue
pagenum: 76; title: * Case Study: Improving the Message Queue
pagenum: 84; title: Twisted
pagenum: 88; title: The Janus Queue
pagenum: 91; title: aiohttp
pagenum: 92; title: * Case Study: Hello World
pagenum: 93; title: * Case Study: Scraping the News
pagenum: 93; title: ØMQ (ZeroMQ)
pagenum: 98; title: * Case Study: Multiple Sockets
pagenum: 99; title: * Case Study: Application Performance Monitoring
pagenum: 102; title: asyncpg and Sanic
pagenum: 110; title: * Case Study: Cache Invalidation
pagenum: 115; title: Other Libraries and Resources
pagenum: 126; label: 5
title: Concluding Thoughts
pagenum: 129; label: A
title: A Short History of Async Support in Python
pagenum: 131; label: B
title: Supplementary Material
pagenum: 135; label: Index
pagenum: 145