Linux server1.hosting4iran.com 4.18.0-553.123.2.el8_10.x86_64 #1 SMP Thu May 7 15:28:41 EDT 2026 x86_64
LiteSpeed
Server IP : 185.208.174.156 & Your IP : 216.73.216.31
Domains : 318 Domain
User : satitravel
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
python311 /
lib64 /
python3.11 /
asyncio /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2023-12-23 09:51
__init__.py
1.16
KB
-rw-r--r--
2023-08-24 12:09
__main__.py
3.26
KB
-rw-r--r--
2023-08-24 12:09
base_events.py
73.06
KB
-rw-r--r--
2023-08-24 12:09
base_futures.py
1.96
KB
-rw-r--r--
2023-08-24 12:09
base_subprocess.py
8.66
KB
-rw-r--r--
2023-08-24 12:09
base_tasks.py
2.58
KB
-rw-r--r--
2023-08-24 12:09
constants.py
1.09
KB
-rw-r--r--
2023-08-24 12:09
coroutines.py
3.32
KB
-rw-r--r--
2023-08-24 12:09
events.py
27.76
KB
-rw-r--r--
2023-08-24 12:09
exceptions.py
1.71
KB
-rw-r--r--
2023-08-24 12:09
format_helpers.py
2.35
KB
-rw-r--r--
2023-08-24 12:09
futures.py
13.88
KB
-rw-r--r--
2023-08-24 12:09
locks.py
18.57
KB
-rw-r--r--
2023-08-24 12:09
log.py
124
B
-rw-r--r--
2023-08-24 12:09
mixins.py
481
B
-rw-r--r--
2023-08-24 12:09
proactor_events.py
32.48
KB
-rw-r--r--
2023-08-24 12:09
protocols.py
6.79
KB
-rw-r--r--
2023-08-24 12:09
queues.py
7.79
KB
-rw-r--r--
2023-08-24 12:09
runners.py
6.68
KB
-rw-r--r--
2023-08-24 12:09
selector_events.py
44.1
KB
-rw-r--r--
2023-08-24 12:09
sslproto.py
30.77
KB
-rw-r--r--
2023-08-24 12:09
staggered.py
5.85
KB
-rw-r--r--
2023-08-24 12:09
streams.py
26.13
KB
-rw-r--r--
2023-08-24 12:09
subprocess.py
7.42
KB
-rw-r--r--
2023-08-24 12:09
taskgroups.py
8.27
KB
-rw-r--r--
2023-08-24 12:09
tasks.py
33.01
KB
-rw-r--r--
2023-08-24 12:09
threads.py
790
B
-rw-r--r--
2023-08-24 12:09
timeouts.py
5.01
KB
-rw-r--r--
2023-08-24 12:09
transports.py
10.47
KB
-rw-r--r--
2023-08-24 12:09
trsock.py
2.42
KB
-rw-r--r--
2023-08-24 12:09
unix_events.py
51.11
KB
-rw-r--r--
2023-08-24 12:09
windows_events.py
33.31
KB
-rw-r--r--
2023-08-24 12:09
windows_utils.py
4.94
KB
-rw-r--r--
2023-08-24 12:09
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)