| Server IP : 121.121.20.254 / Your IP : 216.73.217.51 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/asyncio/__pycache__/ |
Upload File : |
�
���gq � �� � d dl Z d dlmZ d dlmZmZmZ ddlmZ ddlm Z ddlm
Z
dZ G d � d
e j � Z
e G d� d� � Zd
ee defd�Zdee defd�Zy)� N)�
TracebackType)�final�Optional�Type� )�events)�
exceptions)�tasks)�Timeout�timeout�
timeout_atc � � e Zd ZdZdZdZdZdZy)�_State�created�active�expiring�expired�finishedN)�__name__�
__module__�__qualname__�CREATED�ENTERED�EXPIRING�EXPIRED�EXITED� � �%C:\Python312\\Lib\asyncio\timeouts.pyr r s � ��G��G��H��G�
�Fr r c � � e Zd ZdZdee ddfd�Zdee fd�Zdee ddfd�Zde fd�Z
defd �Zdd
�Z
deee dee d
ee dee fd�Zdd�Zy)r z�Asynchronous context manager for cancelling overdue coroutines.
Use `timeout()` or `timeout_at()` rather than instantiating this class directly.
�when�returnNc �X � t j | _ d| _ d| _ || _ y)z�Schedule a timeout that will trigger at a given loop time.
- If `when` is `None`, the timeout will never trigger.
- If `when < loop.time()`, the timeout will trigger on the next
iteration of the event loop.
N)r r �_state�_timeout_handler�_task�_when)�selfr! s r �__init__zTimeout.__init__! s% � � �n�n���>B���+/��
���
r c � � | j S )zReturn the current deadline.)r'