AlkantarClanX12
Current Path : /opt/alt/python312/lib64/python3.12/asyncio/__pycache__/ |
Current File : //opt/alt/python312/lib64/python3.12/asyncio/__pycache__/timeouts.cpython-312.opt-2.pyc |
� �Q�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� � �7/opt/alt/python312/lib64/python3.12/asyncio/timeouts.pyr r s � ��G��G��H��G� �Fr r c � � e Zd Z dee ddfd�Zdee fd�Zdee ddfd�Zdefd�Z de fd�Zdd �Zd ee e dee dee dee fd �Zdd�Zy)r �when�returnNc �Z � t j | _ d | _ d | _ || _ y �N)r r �_state�_timeout_handler�_task�_when)�selfr! s r �__init__zTimeout.__init__! s* � � � �n�n���>B���+/�� ��� r c � � | j S r$ )r( �r) s r r! zTimeout.when. s � �*��z�z�r c � � | j t j urJ| j t j u rt d� �t d| j j � d�� �|| _ | j �| j j � |�d | _ y t j � }||j � k r!|j | j � | _ y |j || j � | _ y )NzTimeout has not been enteredzCannot change state of z Timeout)r% r r r �RuntimeError�valuer( r&