Files
pyGoEdge-UserPanel/.venv/Lib/site-packages/django/utils/__pycache__/asyncio.cpython-312.pyc

11 lines
1.4 KiB
Plaintext
Raw Normal View History

2025-11-18 03:36:49 +08:00
<EFBFBD>
j<> ir<00><00>6<00>ddlZddlmZddlmZddlmZd<05>Zy)<06>N)<01>get_running_loop<6F><01>wraps)<01>SynchronousOnlyOperationc<00>@<00><00><00>fd<01>}t<00><00>r <0C>}d<02>||<02>S|S)z<>
Decorator to mark functions as async-unsafe. Someone trying to access
the function while in an async context will get an error message.
c<00>2<00><01><00>t<00><00><00><00>fd<01><08>}|S)Nc<00><><00><02> t<00>tjjd<01>s t <00><03><00><00>|i|<01><01>S#t
$rY<00>wxYw)N<>DJANGO_ALLOW_ASYNC_UNSAFE)r<00>os<6F>environ<6F>getr<00> RuntimeError)<04>args<67>kwargs<67>func<6E>messages <20><><EFBFBD>CE:\Project\pygoedge\.venv\Lib\site-packages\django/utils/asyncio.py<70>innerz.async_unsafe.<locals>.decorator.<locals>.innersP<00><><00> <<3C> <20>"<22><1A>z<EFBFBD>z<EFBFBD>~<7E>~<7E>&A<>B<>2<>7<EFBFBD>;<3B>;<3B><17><14>(<28><16>(<28> (<28><>  <20> <15><14> <15>s<00>
?<00> A <03>
A r)rrrs` <20>r<00> decoratorzasync_unsafe.<locals>.decorators <00><><00> <0E>t<EFBFBD><1B>
)<29>
<15>
)<29><15> <0C>zKYou cannot call this from an async context - use a thread or sync_to_async.)<01>callable)rrrs` r<00> async_unsafers3<00><><00> <15>"<10><07><18><16><04> <1D> <10><19><14><EFBFBD><1E><18>r)r <00>asyncior<00> functoolsr<00>django.core.exceptionsrr<00>rr<00><module>rs<00><01> <09>$<24><1B>;<3B>r