
    1hU                        S SK Jr  S SK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Jr  S SKJr  \R"                  S:  a  S SKJr  OS SKJr  \	(       a  S S	KJr  \" S
5      r\" SSS9r " S S\\   5      r " S S\S9rg)    )annotationsN)ABCMetaabstractmethod)TracebackType)TYPE_CHECKINGAny	AwaitableCallableTypeVaroverload)warn)      )Protocol)CancelScopeT_RetvalT_contraT)contravariantc                  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    H/var/www/auris/envauris/lib/python3.13/site-packages/anyio/abc/_tasks.pystartedTaskStatus.started           c                    g r   r   r   values     r   r   r      r    r!   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      s2        r!   r   c                      \ rS rSr% SrS\S'   SS.       SS jjr\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&   z
Groups several asynchronous tasks together.

:ivar cancel_scope: the cancel scope inherited by all child tasks
:vartype cancel_scope: CancelScope
r   cancel_scopeN)namec               X   #    [        S[        5        U R                  " U/UQ7SU06  g7f)aa  
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

.. deprecated:: 3.0
   Use :meth:`start_soon` instead. If your code needs AnyIO 2 compatibility, you
   can keep using this until AnyIO 4.

zGspawn() is deprecated -- use start_soon() (without the "await") insteadr2   N)r   DeprecationWarning
start_soonr   funcr2   argss       r   spawnTaskGroup.spawn0   s-     $ 	U	
 	/t/$/s   (*c                   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   r6   s       r   r5   TaskGroup.start_soonH   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.startY           c                   #    g7f)z:Enter the task group context and allow starting new tasks.Nr   r   s    r   
__aenter__TaskGroup.__aenter__l   r@   rA   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__p   r@   rA   r   )r7   Callable[..., Awaitable[Any]]r8   objectr2   rL   r'   r(   )r7   rK   r8   rL   r2   rL   r'   r   )r'   r/   )rF   ztype[BaseException] | NonerG   zBaseException | NonerH   zTracebackType | Noner'   zbool | None)r)   r*   r+   r,   __doc____annotations__r9   r   r5   r>   rC   rI   r-   r   r!   r   r/   r/   &   s     	0+0 0 	0
 
00 
 	+  	
 
   
 	+  	
 
 $ I I K,K &K %	K
 
K Kr!   r/   )	metaclass)
__future__r   sysabcr   r   typesr   typingr   r   r	   r
   r   r   warningsr   version_infor   typing_extensionsanyio._core._tasksr   r   r   r   r/   r   r!   r   <module>rY      sk    " 
 '  M M v*.::T2(# "QK' QKr!   