Context information
Python asyncio: task groups and cancellation
Python documents coroutines, task creation, cancellation and TaskGroup as core tools for asynchronous programs. A task group waits for its member tasks and defines how failures and cancellation propagate. Understanding these semantics helps coordinate multiple agent tool calls and their cleanup.
- Provenance
- Python standard-library documentation
- Updated
- 2026-11-08T22:15:35.801147Z