python (3.12.0)

(root)/
lib/
python3.12/
asyncio/
__pycache__/
taskgroups.cpython-312.opt-1.pyc

ˑe-"@dZddlmZddlmZddlmZGddZy))	TaskGroup)events)
exceptions)taskscReZdZdZdZdZdZdZddddZd	e	d
e
fdZdZd
Z
y)ra9Asynchronous 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`.
    cd|_d|_d|_d|_d|_d|_t
|_g|_d|_	d|_
y)NF)_entered_exiting	_aborting_loop_parent_task_parent_cancel_requestedset_tasks_errors_base_error_on_completed_futselfs F/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/asyncio/taskgroups.py__init__zTaskGroup.__init__sN


 (-%e!%cxdg}|jr'|jdt|j|jr'|jdt|j|jr|jdn|j
r|jddj
|}d|dS)	Nztasks=zerrors=
cancellingentered z
<TaskGroup>)rappendlenrrr	join)rinfoinfo_strs   r__repr__zTaskGroup.__repr__(st;;KK&T[[!1 234<<KK'#dll"3!456>>KK%
]]KK	"88D>H:Q''rcK|jrtd|dd|_|jtj|_tj|j|_|jtd|d|Sw)N
TaskGroup z has been already enteredTz! cannot determine the parent task)r	RuntimeErrorrrget_running_looprcurrent_taskr
rs r
__aenter__zTaskGroup.__aenter__6s==TH$=>@
@
::002DJ!..tzz:$TH$EFH
HsB	BcvKd|_|$|j|r|j||_|tjur|nd}|j
r|jjdk(rd}||js|j|jrT|j|jj|_	|jd{d|_|jrT|j|j|r|js||-|tjur|jj||jr	t!d|j}|dy7#tj$r(}|js|}|jYd}~d}~wwxYw#d|_wxYww)NTzunhandled errors in a TaskGroup)r
_is_base_errorrrCancelledErrorrr
uncancelr_abortrrr
create_futurerrBaseExceptionGroup)retexctbpropagate_cancellation_errorexmes       r	__aexit__zTaskGroup.__aexit__Fs
O##C(  ("D222C	%((  ))+q004,
>>>
kk%%-)-)A)A)C&

",,,,&*D"'kk.'"""(..
>b
(A(AALL$<<
$'(I4<<Xd"
;-,,
"~~460KKM
"H $saCF9E/E-E/F9/A#F9F-,F9-E//F*F% F9%F**F9-	F66F9N)namecontextc|jstd|d|jr|jstd|d|jrtd|d||j
j
|}n|j
j
||}tj|||jr|j||S|jj||j|j|S)zbCreate a new task in this group and return it.

        Similar to `asyncio.create_task`.
        r&z has not been enteredz is finishedz is shutting down)r;)
r	r'r
rrrcreate_taskr_set_task_namedone
_on_task_doneaddadd_done_callback)rcoror:r;tasks     rr=zTaskGroup.create_tasks
}}D83HIJJ==D8<@AA>>D83DEFF?::))$/D::))$)@D
T4(99;t$
KKOOD!""4#5#56rr4returnc.t|ttfS)N)
isinstance
SystemExitKeyboardInterrupt)rr4s  rr-zTaskGroup._is_base_errors#
,=>??rcvd|_|jD]#}|jr|j%y)NT)rrr?cancel)rts  rr0zTaskGroup._aborts.	A668
	rc|jj||jA|js5|jjs|jj	d|jry|j
}|y|jj||j|r|j||_
|jjr1|jjd|d|jd||dy|js?|js2|j!d|_|jj#yyy)NTzTask z% has errored out but its parent task z is already completed)message	exceptionrD)rdiscardrr?
set_result	cancelledrOrrr-rr
rcall_exception_handlerrrr0rK)rrDr4s   rr@zTaskGroup._on_task_dones3D!!!-dkk))..0&&11$7>>nn;C s#(8(8(@"D!!#
JJ--"4(+##'#4#4"55JL 	/

~~d&C&C&
KKM,0D)$$&+'D~r)__name__
__module____qualname____doc__rr$r*r9r=
BaseExceptionboolr-r0r@rrrrsI
&( O$b)-d<@-@D@2'rrN)__all__rrrrrrZrr<module>r\s!
f'f'r