GRAYBYTE WORDPRESS FILE MANAGER8853

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/python310/lib64/python3.10/asyncio/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python310/lib64/python3.10/asyncio//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)

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 13 2025 08:37:18
root / linksafe
0755
__pycache__
--
May 13 2025 08:37:18
root / linksafe
0755
__init__.py
1.082 KB
April 08 2025 12:10:59
root / linksafe
0644
__main__.py
3.3 KB
April 08 2025 12:10:59
root / linksafe
0644
base_events.py
72.599 KB
April 08 2025 12:10:59
root / linksafe
0644
base_futures.py
2.514 KB
April 08 2025 12:10:59
root / linksafe
0644
base_subprocess.py
8.636 KB
April 08 2025 12:10:59
root / linksafe
0644
base_tasks.py
2.409 KB
April 08 2025 12:10:59
root / linksafe
0644
constants.py
0.867 KB
April 08 2025 12:10:59
root / linksafe
0644
coroutines.py
8.591 KB
April 08 2025 12:10:59
root / linksafe
0644
events.py
26.705 KB
April 08 2025 12:10:59
root / linksafe
0644
exceptions.py
1.595 KB
April 08 2025 12:10:59
root / linksafe
0644
format_helpers.py
2.348 KB
April 08 2025 12:10:59
root / linksafe
0644
futures.py
13.854 KB
April 08 2025 12:10:59
root / linksafe
0644
locks.py
13.791 KB
April 08 2025 12:10:59
root / linksafe
0644
log.py
0.121 KB
April 08 2025 12:10:59
root / linksafe
0644
mixins.py
0.784 KB
April 08 2025 12:10:59
root / linksafe
0644
proactor_events.py
31.778 KB
April 08 2025 12:10:59
root / linksafe
0644
protocols.py
6.794 KB
April 08 2025 12:10:59
root / linksafe
0644
queues.py
7.846 KB
April 08 2025 12:10:59
root / linksafe
0644
runners.py
2.055 KB
April 08 2025 12:10:59
root / linksafe
0644
selector_events.py
38.77 KB
April 08 2025 12:10:59
root / linksafe
0644
sslproto.py
26.815 KB
April 08 2025 12:10:59
root / linksafe
0644
staggered.py
5.852 KB
April 08 2025 12:10:59
root / linksafe
0644
streams.py
25.146 KB
April 08 2025 12:10:59
root / linksafe
0644
subprocess.py
7.231 KB
April 08 2025 12:10:59
root / linksafe
0644
tasks.py
31.697 KB
April 08 2025 12:10:59
root / linksafe
0644
threads.py
0.771 KB
April 08 2025 12:10:59
root / linksafe
0644
transports.py
10.473 KB
April 08 2025 12:10:59
root / linksafe
0644
trsock.py
5.738 KB
April 08 2025 12:10:59
root / linksafe
0644
unix_events.py
50.414 KB
April 08 2025 12:10:59
root / linksafe
0644
windows_events.py
32.66 KB
April 08 2025 12:10:59
root / linksafe
0644
windows_utils.py
4.941 KB
April 08 2025 12:10:59
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF