§
     @gU  ã                  ó  — d dl mZ d dlZd dlmZmZ d dlmZ d dlm	Z	m
Z
mZmZmZmZ d dlmZ ej        dk    rd dlmZ nd dlmZ e	rd d	lmZ  ed
¦  «        Z edd¬¦  «        Z G d„ dee         ¦  «        Z G d„ de¬¦  «        ZdS )é    )ÚannotationsN)ÚABCMetaÚabstractmethod)ÚTracebackType)ÚTYPE_CHECKINGÚAnyÚ	AwaitableÚCallableÚTypeVarÚoverload)Úwarn)é   é   )ÚProtocol)ÚCancelScopeÚT_RetvalÚT_contraT)Úcontravariantc                  óH   — e Zd Zedd„¦   «         Zedd„¦   «         Zddd„Zd	S )Ú
TaskStatusÚselfúTaskStatus[None]ÚreturnÚNonec                ó   — d S ©N© ©r   s    úD/var/www/piapp/venv/lib/python3.11/site-packages/anyio/abc/_tasks.pyÚstartedzTaskStatus.started   ó   € àˆó    Úvaluer   c                ó   — d S r   r   ©r   r#   s     r   r    zTaskStatus.started   r!   r"   NúT_contra | Nonec                ó   — dS )zx
        Signal that the task has started.

        :param value: object passed back to the starter of the task
        Nr   r%   s     r   r    zTaskStatus.started   ó   € € € r"   )r   r   r   r   )r#   r   r   r   r   )r#   r&   r   r   )Ú__name__Ú
__module__Ú__qualname__r   r    r   r"   r   r   r      sk   € € € € € Øðð ð ñ „Xðð ðð ð ñ „Xððð ð ð ð ð ð r"   r   c                  ó˜   — e Zd ZU dZded<   ddœdd„Zeddœdd„¦   «         Zeddœdd„¦   «         Zedd„¦   «         Z	edd„¦   «         Z
dS )Ú	TaskGroupz£
    Groups several asynchronous tasks together.

    :ivar cancel_scope: the cancel scope inherited by all child tasks
    :vartype cancel_scope: CancelScope
    r   Úcancel_scopeN)ÚnameÚfuncúCallable[..., Awaitable[Any]]ÚargsÚobjectr/   r   r   c             ‡  óV   K  — t          dt          ¦  «          | j        |g|¢R d|iŽ dS )a¡  
        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") insteadr/   N)r   ÚDeprecationWarningÚ
start_soon©r   r0   r/   r2   s       r   ÚspawnzTaskGroup.spawn0   sJ   è è € õ$ 	ØUÝñ	
ô 	
ð 	
ð 	ˆŒ˜Ð/˜tÐ/Ð/Ð/¨$Ð/Ð/Ð/Ð/Ð/r"   c               ó   — dS )a  
        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   r7   s       r   r6   zTaskGroup.start_soonH   r(   r"   r   c             ‡  ó
   K  — dS )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   r7   s       r   ÚstartzTaskGroup.startY   ó
   è è € € € r"   c              ƒ  ó
   K  — dS )z:Enter the task group context and allow starting new tasks.Nr   r   s    r   Ú
__aenter__zTaskGroup.__aenter__l   r<   r"   Úexc_typeútype[BaseException] | NoneÚexc_valúBaseException | NoneÚexc_tbúTracebackType | Noneúbool | Nonec              ƒ  ó
   K  — dS )z<Exit the task group context waiting for all tasks to finish.Nr   )r   r?   rA   rC   s       r   Ú	__aexit__zTaskGroup.__aexit__p   r<   r"   )r0   r1   r2   r3   r/   r3   r   r   )r0   r1   r2   r3   r/   r3   r   r   )r   r-   )r?   r@   rA   rB   rC   rD   r   rE   )r)   r*   r+   Ú__doc__Ú__annotations__r8   r   r6   r;   r>   rG   r   r"   r   r-   r-   &   sù   € € € € € € ðð ð ÐÐÑð ð	0ð 0ð 0ð 0ð 0ð 0ð0 ð
 ð	ð ð ð ð ñ „^ðð  ð
 ð	ð ð ð ð ñ „^ðð$ ðIð Ið 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>rT      s|  ðØ "Ð "Ð "Ð "Ð "Ð "à 
€
€
€
Ø 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'Ø Ð Ð Ð Ð Ð Ø MÐ MÐ MÐ MÐ MÐ MÐ MÐ MÐ MÐ MÐ MÐ MÐ MÐ MÐ MÐ MØ Ð Ð Ð Ð Ð àÔ�vÒÐØÐÐÐÐÐÐà*Ð*Ð*Ð*Ð*Ð*àð /Ø.Ð.Ð.Ð.Ð.Ð.àˆ7�:ÑÔ€Øˆ7�:¨TÐ2Ñ2Ô2€ðð ð ð ð �˜(Ô#ñ ô ð ð"QKð QKð QKð QKð QK˜'ð QKñ QKô QKð QKð QKð QKr"   