:nSE J d gZ ddlmZ ddlmZ ddlmZ G d d ZdS ) TaskGroup )events)
exceptions)tasksc T e Zd ZdZd Zd Zd Zd ZddddZd e d
e
fdZd Zd
Z
dS )r a9 Asynchronous context manager for managing groups of tasks.
Example use:
async with asyncio.TaskGroup() as group:
task1 = group.create_task(some_coroutine(...))
task2 = group.create_task(other_coroutine(...))
print("Both tasks have completed now.")
All tasks are awaited when the context manager exits.
Any exceptions other than `asyncio.CancelledError` raised within
a task will cancel all remaining tasks and wait for them to exit.
The exceptions are then combined and raised as an `ExceptionGroup`.
c d| _ d| _ d| _ d | _ d | _ d| _ t
| _ g | _ d | _ d | _
d S )NF)_entered_exiting _aborting_loop_parent_task_parent_cancel_requestedset_tasks_errors_base_error_on_completed_futselfs ?/opt/alt/python-internal/lib64/python3.11/asyncio/taskgroups.py__init__zTaskGroup.__init__ sV
(-%ee!% c t dg}| j r*| dt | j | j r*| dt | j | j r| d n| j r| d d | }d| dS ) N ztasks=zerrors=
cancellingentered z