§
    ¯õiN  ã                  ó~  — d dl mZ d dlZd dlZd dlmZ d dlmZmZ d dl	Z	erd dl
mZ ddœdd„Zddœdd„Zdd„Zd d„Zd!d„Z G d„ de¦  «        Zeddœd"d„¦   «         Zeddœd#d„¦   «         Zdej        v rCd dlZeefD ]<Zej                             e¦  «                             e	j        ¬¦  «        e_        Œ;dS dS )$é    )ÚannotationsN)Úcontextmanager)ÚTYPE_CHECKINGÚNoReturn)Ú	GeneratorF©ÚshieldÚdeadlineÚfloatr	   ÚboolÚreturnútrio.CancelScopec               ó.   — t          j        | |¬¦  «        S )a>  Use as a context manager to create a cancel scope with the given
    absolute deadline.

    Args:
      deadline (float): The deadline.
      shield (bool): Initial value for the `~trio.CancelScope.shield` attribute
          of the newly created cancel scope.

    Raises:
      ValueError: if deadline is NaN.

    ©r
   r	   )ÚtrioÚCancelScoper   s     úZ/var/www/html/nodeJS/PythonScripts/venv3.11/lib/python3.11/site-packages/trio/_timeouts.pyÚ
move_on_atr      s   € õ Ô X°fÐ=Ñ=Ô=Ð=ó    Úsecondsc               óž   — | dk     rt          d¦  «        ‚t          j        | ¦  «        rt          d¦  «        ‚t          j        || ¬¦  «        S )aœ  Use as a context manager to create a cancel scope whose deadline is
    set to now + *seconds*.

    The deadline of the cancel scope is calculated upon entering.

    Args:
      seconds (float): The timeout.
      shield (bool): Initial value for the `~trio.CancelScope.shield` attribute
          of the newly created cancel scope.

    Raises:
      ValueError: if ``seconds`` is less than zero or NaN.

    r   ú`seconds` must be non-negativez`seconds` must not be NaN)r	   Úrelative_deadline)Ú
ValueErrorÚmathÚisnanr   r   )r   r	   s     r   Úmove_on_afterr      s]   € ð( �‚{€{ÝÐ9Ñ:Ô:Ð:Ý„z�'ÑÔð 6ÝÐ4Ñ5Ô5Ð5ÝÔØØ!ðñ ô ð r   r   c               ƒ  óp   K  — t           j                             d„ ¦  «        ƒ d{V —† t          d¦  «        ‚)z÷Pause execution of the current task forever (or until cancelled).

    Equivalent to calling ``await sleep(math.inf)``, except that if manually
    rescheduled this will raise a `RuntimeError`.

    Raises:
      RuntimeError: if rescheduled

    c                ó.   — t           j        j        j        S )N)r   ÚlowlevelÚAbortÚ	SUCCEEDED)Ú_s    r   ú<lambda>zsleep_forever.<locals>.<lambda>G   s   € ½¼Ô8KÔ8U€ r   Nz#Should never have been rescheduled!)r   r    Úwait_task_rescheduledÚRuntimeError© r   r   Úsleep_foreverr(   =   sC   è è € õ Œ-×
-Ò
-Ð.UÐ.UÑ
VÔ
VÐVÐVÐVÐVÐVÐVÐVÝ
Ð<Ñ
=Ô
=Ð=r   ÚNonec              ƒ  ó‚   K  — t          | ¦  «        5  t          ¦   «         ƒ d{V —† ddd¦  «         dS # 1 swxY w Y   dS )a  Pause execution of the current task until the given time.

    The difference between :func:`sleep` and :func:`sleep_until` is that the
    former takes a relative time and the latter takes an absolute time
    according to Trio's internal clock (as returned by :func:`current_time`).

    Args:
        deadline (float): The time at which we should wake up again. May be in
            the past, in which case this function executes a checkpoint but
            does not block.

    Raises:
      ValueError: if deadline is NaN.

    N)r   r(   )r
   s    r   Úsleep_untilr+   K   s–   è è € õ  
�HÑ	Ô	ð ð Ý‰oŒoÐÐÐÐÐÐÐðð ð ñ ô ð ð ð ð ð ð ð øøøð ð ð ð ð ð s   ’4´8»8c              ƒ  óÞ   K  — | dk     rt          d¦  «        ‚| dk    r&t          j                             ¦   «         ƒ d{V —† dS t	          t          j        ¦   «         | z   ¦  «        ƒ d{V —† dS )a  Pause execution of the current task for the given number of seconds.

    Args:
        seconds (float): The number of seconds to sleep. May be zero to
            insert a checkpoint without actually blocking.

    Raises:
        ValueError: if *seconds* is negative or NaN.

    r   r   N)r   r   r    Ú
checkpointr+   Úcurrent_time)r   s    r   Úsleepr/   _   s‰   è è € ð �‚{€{ÝÐ9Ñ:Ô:Ð:Ø�!‚|€|ÝŒm×&Ò&Ñ(Ô(Ð(Ð(Ð(Ð(Ð(Ð(Ð(Ð(Ð(å�$Ô+Ñ-Ô-°Ñ7Ñ8Ô8Ð8Ð8Ð8Ð8Ð8Ð8Ð8Ð8Ð8r   c                  ó   — e Zd ZdZdS )ÚTooSlowErrorzRRaised by :func:`fail_after` and :func:`fail_at` if the timeout
    expires.

    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r'   r   r   r1   r1   r   s   € € € € € ðð ð ð r   r1   ú'Generator[trio.CancelScope, None, None]c             #  ó€   K  — t          | |¬¦  «        5 }|V — ddd¦  «         n# 1 swxY w Y   |j        rt          ‚dS )aˆ  Creates a cancel scope with the given deadline, and raises an error if it
    is actually cancelled.

    This function and :func:`move_on_at` are similar in that both create a
    cancel scope with a given absolute deadline, and if the deadline expires
    then both will cause :exc:`Cancelled` to be raised within the scope. The
    difference is that when the :exc:`Cancelled` exception reaches
    :func:`move_on_at`, it's caught and discarded. When it reaches
    :func:`fail_at`, then it's caught and :exc:`TooSlowError` is raised in its
    place.

    Args:
      deadline (float): The deadline.
      shield (bool): Initial value for the `~trio.CancelScope.shield` attribute
          of the newly created cancel scope.

    Raises:
      TooSlowError: if a :exc:`Cancelled` exception is raised in this scope
        and caught by the context manager.
      ValueError: if deadline is NaN.

    r   N)r   Úcancelled_caughtr1   )r
   r	   Úscopes      r   Úfail_atr:   y   s‘   è è € õ8 
�H VÐ	,Ñ	,Ô	,ð °Øˆˆˆðð ð ñ ô ð ð ð ð ð ð øøøð ð ð ð àÔð ÝÐðð ó   ”%¥)¬)c             #  ó€   K  — t          | |¬¦  «        5 }|V — ddd¦  «         n# 1 swxY w Y   |j        rt          ‚dS )aÕ  Creates a cancel scope with the given timeout, and raises an error if
    it is actually cancelled.

    This function and :func:`move_on_after` are similar in that both create a
    cancel scope with a given timeout, and if the timeout expires then both
    will cause :exc:`Cancelled` to be raised within the scope. The difference
    is that when the :exc:`Cancelled` exception reaches :func:`move_on_after`,
    it's caught and discarded. When it reaches :func:`fail_after`, then it's
    caught and :exc:`TooSlowError` is raised in its place.

    The deadline of the cancel scope is calculated upon entering.

    Args:
      seconds (float): The timeout.
      shield (bool): Initial value for the `~trio.CancelScope.shield` attribute
          of the newly created cancel scope.

    Raises:
      TooSlowError: if a :exc:`Cancelled` exception is raised in this scope
        and caught by the context manager.
      ValueError: if *seconds* is less than zero or NaN.

    r   N)r   r8   r1   )r   r	   r9   s      r   Ú
fail_afterr=   ›   s‘   è è € õ: 
�w vÐ	.Ñ	.Ô	.ð °%Øˆˆˆðð ð ñ ô ð ð ð ð ð ð øøøð ð ð ð àÔð ÝÐðð r;   zsphinx.ext.autodoc)Úreturn_annotation)r
   r   r	   r   r   r   )r   r   r	   r   r   r   )r   r   )r
   r   r   r)   )r   r   r   r)   )r
   r   r	   r   r   r6   )r   r   r	   r   r   r6   )Ú
__future__r   r   ÚsysÚ
contextlibr   Útypingr   r   r   Úcollections.abcr   r   r   r(   r+   r/   Ú	Exceptionr1   r:   r=   ÚmodulesÚinspectÚcÚ	SignatureÚfrom_callableÚreplacer   Ú__signature__r'   r   r   ú<module>rL      só  ðØ "Ð "Ð "Ð "Ð "Ð "à €€€Ø 
€
€
€
Ø %Ð %Ð %Ð %Ð %Ð %Ø *Ð *Ð *Ð *Ð *Ð *Ð *Ð *à €€€àð *Ø)Ð)Ð)Ð)Ð)Ð)ð 38ð >ð >ð >ð >ð >ð >ð( ðð ð ð ð ð ð<>ð >ð >ð >ðð ð ð ð(9ð 9ð 9ð 9ð&ð ð ð ð �9ñ ô ð ð ð ðð ð ð ð ñ „ððB ð ðð ð ð ð ñ „ððJ ˜3œ;Ð&Ð&Ø€N€N€Nà�zÐ"ð ið iˆØ!Ô+×9Ò9¸!Ñ<Ô<×DÒDÐW[ÔWgÐDÑhÔhˆŒˆð	 'Ð&ðið ir   