Python Concurrency (asyncio, Structured Concurrency, anyio/trio)

Parent: Programming Languages · researched 2026-06-02T18:04:56.829Z· 8 sources · 8 concepts · skill python-concurrency

Children

Frontier under this node: Async execution model (event loop, coroutines, tasks, awaitables, cooperative scheduling), Async toolbox (Lock/Semaphore/Queue, async iterators/generators, async context managers), Bridging to threads/processes (asyncio.to_thread, run_in_executor), Cancellation & timeouts (CancelledError re-raise, asyncio.timeout 3.11+, uncancel, shield), Fire-and-forget GC trap + background-task-set pattern + eager task factory 3.12, PEP 789 (no yield across TaskGroup) + common pitfalls (blocking loop, swallowing cancel), Structured concurrency with asyncio.TaskGroup 3.11+ (vs gather, ExceptionGroup, except*), anyio & trio (nurseries, cancel scopes, portability layer, why anyio for libraries)

← the whole tree · 3D view· how to read this page