Files
pyGoEdge-UserPanel/.venv/Lib/site-packages/asgiref/__pycache__/timeout.cpython-312.pyc

39 lines
4.8 KiB
Plaintext
Raw Normal View History

2025-11-18 03:36:49 +08:00
<EFBFBD>
g<> i+<00><00>P<00>ddlZddlZddlmZddlmZddlmZmZGd<05>d<06>Zy)<07>N)<01> TracebackType)<01>Any)<02>Optional<61>Typec <00><><00>eZdZdZdd<03>deedeejddfd<06>Zdd<07>Z de
e d e d
e dee fd <0B>Zdd <0C>Zde
e d e d
e ddfd <0A>Zede fd<0E><04>Zedeefd<0F><04>Zdd<10>Zde
e ddfd<11>Zdd<12>Zy)<15>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>returnc<00><><00>||_|<02>tj<00>}ntjdt
<00>||_d|_d|_d|_ d|_
y)Nz-The loop argument to timeout() is deprecated.F) <0B>_timeout<75>asyncio<69>get_running_loop<6F>warnings<67>warn<72>DeprecationWarning<6E>_loop<6F>_task<73>
_cancelled<EFBFBD>_cancel_handler<65>
_cancel_at)<03>selfrr s <20>>E:\Project\pygoedge\.venv\Lib\site-packages\asgiref/timeout.py<70>__init__ztimeout.__init__sV<00><00>  <20><04> <0A> <0F><<3C><1A>+<2B>+<2B>-<2D>D<EFBFBD> <14>M<EFBFBD>M<EFBFBD>C<>EW<45> <0E><1A><04>
<EFBFBD><19><04>
<EFBFBD><1F><04><0F>#<23><04><1C><1E><04><0F>c<00>"<00>|j<00>S<00>N<><01> _do_enter<65>rs r<00> __enter__ztimeout.__enter__2s<00><00><13>~<7E>~<7E><1F>r<00>exc_type<70>exc_val<61>exc_tbc<00>&<00>|j|<01>yr<00><01>_do_exit<69>rr!r"r#s r<00>__exit__ztimeout.__exit__5s<00><00> <0A> <0A> <0A>h<EFBFBD><1F>rc<00><00>*K<00>|j<00>S<00>wrrrs r<00>
__aenter__ztimeout.__aenter__>s<00><00><><00><13>~<7E>~<7E><1F><1F>s<00>c<00><00>.K<00>|j|<01>y<00>wrr%r's r<00> __aexit__ztimeout.__aexit__As<00><00><><00> <0A> <0A> <0A>h<EFBFBD><1F>s<00>c<00><00>|jSr)rrs r<00>expiredztimeout.expiredIs <00><00><13><EFBFBD><EFBFBD>rc<00>~<00>|j<00>1t|j|jj<00>z
d<01>Sy)Ng)r<00>maxr<00>timers r<00> remainingztimeout.remainingMs0<00><00> <0F>?<3F>?<3F> &<26><16>t<EFBFBD><EFBFBD><EFBFBD><14><1A><1A><1F><1F>):<3A>:<3A>C<EFBFBD>@<40> @<40>rc<00><><00>|j<00>|Stj|j<00>|_|j<00> t d<01><00>|jdkr'|jj |j<00>|S|jj<00>|jz|_ |jj|j|j<00>|_ |S)Nz4Timeout context manager should be used inside a taskr) r r <00> current_taskrr<00> RuntimeError<6F> call_soon<6F> _cancel_taskr1r<00>call_atrrs rrztimeout._do_enterTs<><00><00> <10>=<3D>=<3D> <20><17>K<EFBFBD><1C>)<29>)<29>$<24>*<2A>*<2A>5<><04>
<EFBFBD> <0F>:<3A>:<3A> <1D><1E>I<><0E> <0E> <10>=<3D>=<3D>A<EFBFBD> <1D> <10>J<EFBFBD>J<EFBFBD> <20> <20><14>!2<>!2<> 3<><17>K<EFBFBD><1E>*<2A>*<2A>/<2F>/<2F>+<2B>d<EFBFBD>m<EFBFBD>m<EFBFBD>;<3B><04><0F>#<23>z<EFBFBD>z<EFBFBD>1<>1<>$<24>/<2F>/<2F>4<EFBFBD>CT<43>CT<43>U<><04><1C><13> rc<00><><00>|tjur*|jrd|_d|_tj
<00>|j <00>-|j<00>!|jj<00>d|_d|_yr)r <00>CancelledErrorrrr<00> TimeoutErrorr <00>cancel)rr!s rr&ztimeout._do_exithsj<00><00> <13>w<EFBFBD>-<2D>-<2D> -<2D>$<24>/<2F>/<2F>#'<27>D<EFBFBD> <20><1D>D<EFBFBD>J<EFBFBD><19>&<26>&<26> &<26> <0F>=<3D>=<3D> $<24><14>)=<3D>)=<3D>)I<> <10> <20> <20> '<27> '<27> )<29>#'<27>D<EFBFBD> <20><19><04>
<EFBFBD>rc<00>`<00>|j<00>"|jj<00>d|_yy)NT)rr<rrs rr7ztimeout._cancel_taskss(<00><00> <0F>:<3A>:<3A> !<21> <10>J<EFBFBD>J<EFBFBD> <1D> <1D> <1F>"<22>D<EFBFBD>O<EFBFBD> "r)r
r)r
N)<17>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__r<00>floatr <00>AbstractEventLooprr r<00> BaseExceptionr<00>boolr(r*r,<00>propertyr.r2rr&r7<00>rrrrs<00><00> <08>$59<35> <1F><19>%<25><1F><1F><17>w<EFBFBD>0<>0<>1<> <1F>
<0E> <1F>& <20><14><16>}<7D>%<25><14><1F><14><1E> <14>
<12>$<24><1E> <14> <20> <20><16>}<7D>%<25> <20><1F> <20><1E>  <20>
<0E>  <20><0E><1F><14><1F><0E><1F><0E><18>8<EFBFBD>E<EFBFBD>?<3F><18><0E><18> <14>( <14><14>m<EFBFBD>!4<> <14><14> <14>#rr) r r<00>typesr<00>typingrrrrrGrr<00><module>rJs"<00><01><0F><0F><1F><16>!<21>f#<23>f#r