Files
cms-website/.deps_siteforge_v812/anyio/__pycache__/lowlevel.cpython-312.pyc
T

91 lines
7.8 KiB
Plaintext
Raw Normal View History

Ë
ïÅÙj&ãól—UddlmZdZddlZddlmZddlmZddlm Z m
Z
m Z m Z m
Z
mZddlmZdd lmZdd
lmZe d «Ze d «Zdd
„Zdd„Zdd„Ze
edd¬«Gd„d«««Zdd„Ze«Zded<Gd„dej<«ZGd„de
e«Z Gd„de
e«Z!y) é)Ú annotations)ÚEventLoopTokenÚ RunvarTokenÚRunVarÚ
checkpointÚcheckpoint_if_cancelledÚcancel_shielded_checkpointÚ
current_tokenN)Ú dataclass)Ú
TracebackType)ÚAnyÚGenericÚLiteralÚTypeVarÚfinalÚoverload)ÚWeakKeyDictionaryé)Úget_async_backend)Ú AsyncBackendÚTÚDcƒóPK—t«j«ƒd{–—†y7Œ­w)zò
Check for cancellation and allow the scheduler to switch to another task.
Equivalent to (but more efficient than)::
await checkpoint_if_cancelled()
await cancel_shielded_checkpoint()
.. versionadded:: 3.0
N)rr©óúRC:\Users\30997\AppData\Local\Temp\pip-target-6g32zz5s\lib\python\anyio/lowlevel.pyrrsèø€ô Ó
×
(Ñ
(Ó
*×*Ò*úó ‚&ž$Ÿ&cƒóPK—t«j«ƒd{–—†y7Œ­w)z°
Enter a checkpoint if the enclosing cancel scope has been cancelled.
This does not allow the scheduler to switch to a different task.
.. versionadded:: 3.0
N)rrrrrrr)sèø€ô Ó
×
5Ñ
5Ó
7×7Ò7úrcƒóPK—t«j«ƒd{–—†y7Œ­w)zü
Allow the scheduler to switch to another task but without checking for cancellation.
Equivalent to (but potentially more efficient than)::
with CancelScope(shield=True):
await checkpoint()
.. versionadded:: 3.0
N)rr rrrr r 5sèø€ô Ó
×
8Ñ
8Ó
:×:Ò:úrTF)ÚfrozenÚreprcó&—eZdZUdZded<ded<y)rza
An opaque object that holds a reference to an event loop.
.. versionadded:: 4.11.0
ztype[AsyncBackend]Ú
backend_classÚobjectÚ native_tokenN)Ú__name__Ú
__module__Ú __qualname__Ú__doc__Ú__annotations__rrrrrDs…ñð &Ó%ØÔrrcóN—t«}|j«}t||«S)zÿ
Return a token object that can be used to call code in the current event loop from
another thread.
:raises NoEventLoopError: if no supported asynchronous event loop is running in the
current thread
.. versionadded:: 4.11.0
)rr
r)r#Ú raw_tokens rr
r
Qs'€ô&Ó'€MØ×+Ñ+Ó-€IÜ ˜-¨Ó 3Ð3rz1WeakKeyDictionary[object, dict[RunVar[Any], Any]]Ú _run_varscó.—eZdZej«Zy)Ú _NoValueSetN)r&r'r(ÚenumÚautoÚ NO_VALUE_SETrrrr/r/ds„Ø�4—9‘9“;�Lrr/có8—eZdZdZdd„Zdd„Z dd„Zy) r©Ú_varÚ_valueÚ _redeemedcó.—||_||_d|_y)NFr4)ÚselfÚvarÚvalues rÚ__init__zRunvarToken.__init__ks€ØˆŒ Ø=BˆŒ ؈�rcó—|S©Nr©r9s rÚ __enter__zRunvarToken.__enter__ps€Øˆ rcó:—|jj|«yr>)r5Úreset)r9Úexc_typeÚexc_valÚexc_tbs rÚ__exit__zRunvarToken.__exit__ss€ð
� ‰ �‰˜ÕrN)r:z RunVar[T]r;ú%T | Literal[_NoValueSet.NO_VALUE_SET])ÚreturnúRunvarToken[T])rCztype[BaseException] | NonerDzBaseException | NonerEzTracebackType | NonerHÚNone)r&r'r(Ú __slots__r<r@rFrrrrrhs<„Ø-€Ióó
ðà,ðð&ðð%ð ð
ô rrcóª—eZdZUdZdZej Zded<ef dd„Ze dd„«Z
e dd„«Z e dd„«Z ef dd „Z dd
„Z
dd „Zdd „Zy
)ra
Like a :class:`~contextvars.ContextVar`, except scoped to the running event loop.
Can be used as a context manager, Just like :class:`~contextvars.ContextVar`, that
will reset the variable to its previous value when the context block is exited.
©Ú_nameÚ_defaultz!Literal[_NoValueSet.NO_VALUE_SET]r2có —||_||_yr>rM)r9ÚnameÚdefaults rr<zRunVar.__init__ˆs€ðˆŒ
؈�
rcóv—t«j} t|S#t$rix}t|<|cYSwxYwr>)r
r%r-ÚKeyError)r9r%Úrun_varss rÚ
_current_varszRunVar._current_varsŽsB€ä$“×3Ñ3ˆ ð ܘ\Ñ*Ð *øÜò Ø13Ð 3ˆH”y Ñ.ØŠOð ús –Ÿ8·8có—yr>r©r9rRs rÚgetz
RunVar.get—s€Ø(+rcó—yr>rr?s rrYz
RunVar.getšs€Ørcóò— |j|S#t$rC|tjur|cYS|jtjur|jcYSYnwxYwt d|j ›d�«‚)NzRun variable "z!" has no value and no default set)rVrTrr2rOÚ LookupErrorrNrXs rrYz
RunVar.get�s{€ð %Ø×%Ñ% dÑ+Ð +øÜò %Øœf×1Ñ1Ñ1ؒؗ‘¤f×&9Ñ&9Ñ9Ø—}‘}Ò$ñ:ð %úô ؘTŸZ™Z˜LÐ(IÐ Jó