Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.69.59.73
138 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3.10 /
asyncio /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
__init__.py
1.08
KB
-rw-r--r--
__main__.py
3.26
KB
-rw-r--r--
base_events.py
72.6
KB
-rw-r--r--
base_futures.py
2.51
KB
-rw-r--r--
base_subprocess.py
8.64
KB
-rw-r--r--
base_tasks.py
2.41
KB
-rw-r--r--
constants.py
888
B
-rw-r--r--
coroutines.py
8.59
KB
-rw-r--r--
events.py
26.71
KB
-rw-r--r--
exceptions.py
1.59
KB
-rw-r--r--
format_helpers.py
2.35
KB
-rw-r--r--
futures.py
13.85
KB
-rw-r--r--
locks.py
13.79
KB
-rw-r--r--
log.py
124
B
-rw-r--r--
mixins.py
803
B
-rw-r--r--
proactor_events.py
31.78
KB
-rw-r--r--
protocols.py
6.79
KB
-rw-r--r--
queues.py
7.85
KB
-rw-r--r--
runners.py
2.05
KB
-rw-r--r--
selector_events.py
38.77
KB
-rw-r--r--
sslproto.py
26.82
KB
-rw-r--r--
staggered.py
5.85
KB
-rw-r--r--
streams.py
25.15
KB
-rw-r--r--
subprocess.py
7.23
KB
-rw-r--r--
tasks.py
31.7
KB
-rw-r--r--
threads.py
790
B
-rw-r--r--
transports.py
10.47
KB
-rw-r--r--
trsock.py
5.74
KB
-rw-r--r--
unix_events.py
50.41
KB
-rw-r--r--
windows_events.py
32.61
KB
-rw-r--r--
windows_utils.py
4.94
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : threads.py
"""High-level support for working with threads in asyncio""" import functools import contextvars from . import events __all__ = "to_thread", async def to_thread(func, /, *args, **kwargs): """Asynchronously run function *func* in a separate thread. Any *args and **kwargs supplied for this function are directly passed to *func*. Also, the current :class:`contextvars.Context` is propagated, allowing context variables from the main thread to be accessed in the separate thread. Return a coroutine that can be awaited to get the eventual result of *func*. """ loop = events.get_running_loop() ctx = contextvars.copy_context() func_call = functools.partial(ctx.run, func, *args, **kwargs) return await loop.run_in_executor(None, func_call)
Close