AdvancedVocabulary#python#asyncio#concurrency#async#anyio

Python asyncio TaskGroups & Structured Concurrency

Python 3.11's TaskGroup and ExceptionGroup bring structured concurrency to asyncio. Master TaskGroups, ExceptionGroup handling with except*, anyio for backend-agnostic code, cancellation scopes, and asyncio.shield for building robust, composable async applications.

0 / 5 completed
1 / 5
Python 3.11 introduced asyncio.TaskGroup. A developer uses it as async with asyncio.TaskGroup() as tg: tg.create_task(task_a()); tg.create_task(task_b()). What happens if task_a() raises an exception?