SILENT KILLERPanel

Current Path: > > opt > alt > python39 > > lib64 > python3.9 > asyncio


Operation   : Linux premium131.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
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python39//lib64/python3.9/asyncio

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
__init__.py File 1279 bytes June 03 2025 18:47:52.
__main__.py File 3379 bytes June 03 2025 18:47:52.
base_events.py File 74192 bytes June 03 2025 18:47:52.
base_futures.py File 2574 bytes June 03 2025 18:47:52.
base_subprocess.py File 8843 bytes June 03 2025 18:47:52.
base_tasks.py File 2467 bytes June 03 2025 18:47:52.
constants.py File 888 bytes June 03 2025 18:47:52.
coroutines.py File 8797 bytes June 03 2025 18:47:52.
events.py File 26451 bytes June 03 2025 18:47:52.
exceptions.py File 1633 bytes June 03 2025 18:47:52.
format_helpers.py File 2404 bytes June 03 2025 18:47:52.
futures.py File 14042 bytes June 03 2025 18:47:52.
locks.py File 15181 bytes June 03 2025 18:47:52.
log.py File 124 bytes June 03 2025 18:47:52.
proactor_events.py File 32146 bytes June 03 2025 18:47:52.
protocols.py File 6957 bytes June 03 2025 18:47:52.
queues.py File 8305 bytes June 03 2025 18:47:52.
runners.py File 2125 bytes June 03 2025 18:47:52.
selector_events.py File 39500 bytes June 03 2025 18:47:52.
sslproto.py File 27459 bytes June 03 2025 18:47:52.
staggered.py File 5992 bytes June 03 2025 18:47:52.
streams.py File 26656 bytes June 03 2025 18:47:52.
subprocess.py File 8070 bytes June 03 2025 18:47:52.
tasks.py File 34419 bytes June 03 2025 18:47:52.
threads.py File 790 bytes June 03 2025 18:47:52.
transports.py File 10724 bytes June 03 2025 18:47:52.
trsock.py File 5876 bytes June 03 2025 18:47:52.
unix_events.py File 51754 bytes June 03 2025 18:47:52.
windows_events.py File 33054 bytes June 03 2025 18:47:52.
windows_utils.py File 5060 bytes June 03 2025 18:47:52.

Reading File: //opt/alt/python39//lib64/python3.9/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)

SILENT KILLER Tool