Files
wg-backend-django/acer-env/lib/python3.10/site-packages/asgiref/__pycache__/timeout.cpython-310.pyc

46 lines
3.1 KiB
Plaintext
Raw Normal View History

2022-11-30 15:58:16 +07:00
o
<00>Ԅcp <00>@s:ddlZddlmZddlmZmZmZGdd<05>d<05>ZdS)<06>N)<01> TracebackType)<03>Any<6E>Optional<61>Typec @s<>eZdZdZdd<03>deedeejddfdd<07>Zddd <09>Z d
e
e d e d e dee fd d<0E>Zddd<10>Zd
e
e d e d e ddfdd<12>Zede fdd<14><04>Zedeefdd<16><04>Zddd<18>Zd
e
e ddfdd<1A>Zddd<1C>ZdS)<1F>timeouta<74>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:
>>> with timeout(0.001):
... async with aiohttp.get('https://github.com') as r:
... await r.text()
timeout - value in seconds or None to disable timeout logic
loop - asyncio compatible event loop
N)<01>loopr<00>returncCs8||_|dur t<01><02>}||_d|_d|_d|_d|_dS)NF)<08>_timeout<75>asyncio<69>get_event_loop<6F>_loop<6F>_task<73>
_cancelled<EFBFBD>_cancel_handler<65>
_cancel_at)<03>selfrr<00>r<00>b/home/infidel/Sync/Project/ocp-wg-backend/acer-env/lib/python3.10/site-packages/asgiref/timeout.py<70>__init__s
ztimeout.__init__cCs|<00><00>S<00>N<><01> _do_enter<65>rrrr<00> __enter__,sztimeout.__enter__<5F>exc_type<70>exc_val<61>exc_tbcCs|<00>|<01>dSr<00><01>_do_exit<69>rrrrrrr<00>__exit__/s
ztimeout.__exit__c<00>s
<00>|<00><00>Srrrrrr<00>
__aenter__8s<02>ztimeout.__aenter__c<00>s<00>|<00>|<01>dSrrrrrr<00> __aexit__;s<02>ztimeout.__aexit__cCs|jSr)rrrrr<00>expiredCsztimeout.expiredcCs$|jdurt|j|j<02><03>d<01>SdS)Ng)r<00>maxr <00>timerrrr<00> remainingGs
ztimeout.remainingcCst|jdur|St<01>|j<03>|_|jdurtd<01><01>|jdkr%|j<03>|j<07>|S|j<03><08>|j|_ |j<03>
|j |j<07>|_ |S)Nz4Timeout context manager should be used inside a taskr) r r
<00> current_taskr r <00> RuntimeError<6F> call_soon<6F> _cancel_taskr%r<00>call_atrrrrrrNs

<04>
ztimeout._do_entercCsP|tjur|jrd|_d|_tj<05>|jdur#|jdur#|j<03><07>d|_d|_dSr)r
<00>CancelledErrorrrr <00> TimeoutErrorr <00>cancel)rrrrrrbs
ztimeout._do_exitcCs"|jdur|j<00><01>d|_dSdS)NT)r r.rrrrrr*ms


<04>ztimeout._cancel_task)rr)rN)<17>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__r<00>floatr
<00>AbstractEventLooprrr<00> BaseExceptionr<00>boolr r!r"<00>propertyr#r&rrr*rrrrrsJ<06><02><02>
<EFBFBD>
<02><02><02>
<EFBFBD>
<02><02><02>
<EFBFBD>
 r)r
<00>typesr<00>typingrrrrrrrr<00><module>s