v * d dl Z d dlZd dlZd dlZd dlmZ d dlmZmZ ej dk rd dlm Z nd dlm Z ej dk rdd ZnddZdZ d Zdee d dfdZdee d dfdZ G d dej Ze G d d ZdS ) N) TracebackType)OptionalType) )final)r taskasyncio.Task[object]returnc . | d S N)uncancelr s v/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/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_atTimeoutdelayr 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)asyncioget_running_looptimer )r loopdeadlines r r r sA #%%D99;;&8T"""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" #%%D8T"""r c e Zd ZdZdZdZdZdS )_StateINITENTERTIMEOUTEXITN)__name__ __module____qualname__r# r$ r% r&