Ë
    #)fÙ  ã                  óž   — d dl mZ d dlZd dlmZmZ d dlmZ d dlZdd„Z	dd„Z
dd„Zdd„Zdd	„Z G d
„ de«      Zdd„Zes ee«      Zdd„Zy)é    )ÚannotationsN)ÚAbstractContextManagerÚcontextmanager)ÚTYPE_CHECKINGc                ón   — t        j                  | «      rt        d«      ‚t        j                  | ¬«      S )zÁUse as a context manager to create a cancel scope with the given
    absolute deadline.

    Args:
      deadline (float): The deadline.

    Raises:
      ValueError: if deadline is NaN.

    zdeadline must not be NaN©Údeadline)ÚmathÚisnanÚ
ValueErrorÚtrioÚCancelScoper   s    úK/var/www/html/flask-app/venv/lib/python3.12/site-packages/trio/_timeouts.pyÚ
move_on_atr   
   s-   € ô ‡z�z�(ÔÜÐ3Ó4Ð4Ü×Ñ XÔ.Ð.ó    c                ób   — | dk  rt        d«      ‚t        t        j                  «       | z   «      S )zØUse as a context manager to create a cancel scope whose deadline is
    set to now + *seconds*.

    Args:
      seconds (float): The timeout.

    Raises:
      ValueError: if timeout is less than zero or NaN.

    r   útimeout must be non-negative)r   r   r   Úcurrent_time©Úsecondss    r   Úmove_on_afterr      s0   € ð �‚{ÜÐ7Ó8Ð8Ü”d×'Ñ'Ó)¨GÑ3Ó4Ð4r   c               ƒ  ó`   K  — t         j                  j                  d„ «      ƒ d{  –—†  y7 Œ­w)z}Pause execution of the current task forever (or until cancelled).

    Equivalent to calling ``await sleep(math.inf)``.

    c                óJ   — t         j                  j                  j                  S )N)r   ÚlowlevelÚAbortÚ	SUCCEEDED)Ú_s    r   ú<lambda>zsleep_forever.<locals>.<lambda>0   s   € ¼¿¹×8KÑ8K×8UÑ8U€ r   N)r   r   Úwait_task_rescheduled© r   r   Úsleep_foreverr!   *   s!   è ø€ ô �-‰-×
-Ñ
-Ñ.UÓ
V×VÒVús   ‚$.¦,§.c              ƒ  ót   K  — t        | «      5  t        «       ƒ d{  –—†  ddd«       y7 Œ# 1 sw Y   yxY w­w)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#   3   s8   è ø€ ô  
�HÓ	ñ Ü‹o×Ð÷ð Øø÷ð üs    ‚8Ž,œ*�,¡	8ª,¬5±8c              ƒ  óÜ   K  — | dk  rt        d«      ‚| dk(  r't        j                  j                  «       ƒ d{  –—†  yt	        t        j
                  «       | z   «      ƒ d{  –—†  y7 Œ.7 Œ­w)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   zduration must be non-negativeN)r   r   r   Ú
checkpointr#   r   r   s    r   Úsleepr&   G   s]   è ø€ ð �‚{ÜÐ8Ó9Ð9Ø�!‚|Ü�m‰m×&Ñ&Ó(×(Ñ(äœ$×+Ñ+Ó-°Ñ7Ó8×8Ñ8ð 	)øà8ús!   ‚7A,¹A(º(A,Á"A*Á#A,Á*A,c                  ó   — e Zd ZdZy)ÚTooSlowErrorzRRaised by :func:`fail_after` and :func:`fail_at` if the timeout
    expires.

    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r    r   r   r(   r(   Z   s   „ òr   r(   c              #  óx   K  — t        | «      5 }|–— ddd«       j                  rt        ‚y# 1 sw Y   ŒxY w­w)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.

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

    N)r   Úcancelled_caughtr(   )r	   Úscopes     r   Úfail_atr0   c   s?   è ø€ ô* 
�HÓ	ð  ØŠ÷à×ÒÜÐð ÷ð üs   ‚:Ž.“:®7³:c                ób   — | dk  rt        d«      ‚t        t        j                  «       | z   «      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.

    Args:
      seconds (float): The timeout.

    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   r   )r   r0   r   r   r   s    r   Ú
fail_afterr2   ‚   s0   € ð( �‚{ÜÐ7Ó8Ð8Ü”4×$Ñ$Ó&¨Ñ0Ó1Ð1r   )r	   ÚfloatÚreturnútrio.CancelScope)r   r3   r4   r5   )r4   ÚNone)r	   r3   r4   r6   )r   r3   r4   r6   )r	   r3   r4   ú(AbstractContextManager[trio.CancelScope])r   r3   r4   r7   )Ú
__future__r   r
   Ú
contextlibr   r   Útypingr   r   r   r   r!   r#   r&   Ú	Exceptionr(   r0   r2   r    r   r   ú<module>r<      sS   ðÝ "ã ß =Ý  ã ó/ó 5ó Wóó(9ô&�9ô óñ6 Ù˜WÓ%€Gô2r   