
    h                       S SK Jr  S SKrS SKJrJr  S SKJrJr  S SK	J
r
  S SKJrJrJrJrJr  \R"                  S:  a	  S SKJrJr  OS SKJrJr  \(       a  S	S
KJr  \" S5      r\" SSS9r\" S5      r " S S\\   5      r " S S\S9rg)    )annotationsN)ABCMetaabstractmethod)	AwaitableCallable)TracebackType)TYPE_CHECKINGAnyProtocolTypeVaroverload)      )TypeVarTupleUnpack   )CancelScopeT_RetvalT_contraT)contravariantPosArgsTc                  J    \ rS rSr\SS j5       r\SS j5       rS	S
S jjrSrg)
TaskStatus   c                    g N selfs    B/var/www/html/env/lib/python3.13/site-packages/anyio/abc/_tasks.pystartedTaskStatus.started   s    14    c                    g r   r   r   values     r    r!   r"      s    03r#   Nc                    g)z`
Signal that the task has started.

:param value: object passed back to the starter of the task
Nr   r%   s     r    r!   r"          r#   r   )r   zTaskStatus[None]returnNone)r&   r   r)   r*   r   )r&   zT_contra | Noner)   r*   )__name__
__module____qualname____firstlineno__r   r!   __static_attributes__r   r#   r    r   r      s(    4 43 3 r#   r   c                      \ rS rSr% SrS\S'   \SS.       SS jj5       r\SS.       SS jj5       r\SS	 j5       r	\        SS
 j5       r
Srg)	TaskGroup%   a  
Groups several asynchronous tasks together.

:ivar cancel_scope: the cancel scope inherited by all child tasks
:vartype cancel_scope: CancelScope

.. note:: On asyncio, support for eager task factories is considered to be
    **experimental**. In particular, they don't follow the usual semantics of new
    tasks being scheduled on the next iteration of the event loop, and may thus
    cause unexpected behavior in code that wasn't written with such semantics in
    mind.
r   cancel_scopeN)namec                   g)z
Start a new task in this task group.

:param func: a coroutine function
:param args: positional arguments to call the function with
:param name: name of the task, for the purposes of introspection and debugging

.. versionadded:: 3.0
Nr   r   funcr4   argss       r    
start_soonTaskGroup.start_soon5   r(   r#   c                  #    g7f)a  
Start a new task and wait until it signals for readiness.

:param func: a coroutine function
:param args: positional arguments to call the function with
:param name: name of the task, for the purposes of introspection and debugging
:return: the value passed to ``task_status.started()``
:raises RuntimeError: if the task finishes without calling
    ``task_status.started()``

.. versionadded:: 3.0
Nr   r6   s       r    startTaskGroup.startF           c                   #    g7f)z:Enter the task group context and allow starting new tasks.Nr   r   s    r    
__aenter__TaskGroup.__aenter__Z   r>   r?   c                   #    g7f)z<Exit the task group context waiting for all tasks to finish.Nr   )r   exc_typeexc_valexc_tbs       r    	__aexit__TaskGroup.__aexit__^   r>   r?   r   )r7   z,Callable[[Unpack[PosArgsT]], Awaitable[Any]]r8   zUnpack[PosArgsT]r4   objectr)   r*   )r7   zCallable[..., Awaitable[Any]]r8   rI   r4   rI   r)   r
   )r)   r1   )rD   ztype[BaseException] | NonerE   zBaseException | NonerF   zTracebackType | Noner)   zbool | None)r+   r,   r-   r.   __doc____annotations__r   r9   r<   rA   rG   r/   r   r#   r    r1   r1   %   s     
 	:   	
 
   
 	+  	
 
 & I I K,K &K %	K
 
K Kr#   r1   )	metaclass)
__future__r   sysabcr   r   collections.abcr   r   typesr   typingr	   r
   r   r   r   version_infor   r   typing_extensions_core._tasksr   r   r   r   r   r1   r   r#   r    <module>rV      sx    " 
 ' /  B Bw++6*::T2
#(# @K' @Kr#   