관리-도구
편집 파일: __init__.cpython-311.pyc
� �܋fJ � �* � d dl Z d dlZd dlZd dlZd dlmZ d dlmZmZ ej dk rd dlm Z nd dlm Z ej dk rdd �Zndd�ZdZ d Zdee d dfd�Zdee d dfd�Z G d� dej � � Ze G d� d� � � � ZdS )� N)� TracebackType)�Optional�Type)� � )�final)r � �task�asyncio.Task[object]�returnc �. � | � � � d S �N)�uncancel�r s �g/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/async_timeout/__init__.py�_uncancel_taskr s � �� � ������ c � � d S r � r s r r r s � ��r z4.0.3)�timeout� timeout_at�Timeout�delayr c � � t j � � }| �|� � � | z }nd}t ||� � S )ar timeout context manager. Useful in cases when you want to apply timeout logic around block of code or in cases when asyncio.wait_for is not suitable. For example: >>> async with timeout(0.001): ... async with aiohttp.get('https://github.com') as r: ... await r.text() delay - value in seconds or None to disable timeout logic N)�asyncio�get_running_loop�timer )r �loop�deadlines r r r sA � � �#�%�%�D����9�9�;�;��&������8�T�"�"�"r r c �H � t j � � }t | |� � S )a� Schedule the timeout at absolute time. deadline argument points on the time in the same clock system as loop.time(). Please note: it is not POSIX time but a time with undefined starting base, e.g. the time of the system power on. >>> async with timeout_at(loop.time() + 10): ... async with aiohttp.get('https://github.com') as r: ... await r.text() )r r r )r r s r r r 5 s"