%PDF- %PDF-
Direktori : /lib/python3.12/asyncio/__pycache__/ |
Current File : //lib/python3.12/asyncio/__pycache__/timeouts.cpython-312.pyc |
� ���f� � �� � 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� � �'/usr/lib/python3.12/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'