Structured Concurrency in Python with asyncio.TaskGroup Jun 30, 2025 Use TaskGroup in Python 3.12 and 3.13 to give concurrent work a bounded lifetime, predictable failure propagation, timeouts, and testable cancellation.