Submit
Path:
~
/
/
lib
/
python3.10
/
asyncio
/
__pycache__
/
File Content:
threads.cpython-310.pyc
o � i � @ s0 d Z ddlZddlZddlmZ dZdd� ZdS )z6High-level support for working with threads in asyncio� N� )�events)� to_threadc � s@ �t �� }t�� }tj|j| g|�R i |��}|�d|�I dH S )a� 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*. N)r �get_running_loop�contextvars�copy_context� functools�partial�run�run_in_executor)�func�args�kwargs�loop�ctx� func_call� r �&/usr/lib/python3.10/asyncio/threads.pyr s � r )�__doc__r r � r �__all__r r r r r �<module> s
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
__init__.cpython-310.pyc
744 bytes
0644
__main__.cpython-310.pyc
3171 bytes
0644
base_events.cpython-310.pyc
51852 bytes
0644
base_futures.cpython-310.pyc
1911 bytes
0644
base_subprocess.cpython-310.pyc
9386 bytes
0644
base_tasks.cpython-310.pyc
1981 bytes
0644
constants.cpython-310.pyc
586 bytes
0644
coroutines.cpython-310.pyc
6621 bytes
0644
events.cpython-310.pyc
28306 bytes
0644
exceptions.cpython-310.pyc
2468 bytes
0644
format_helpers.cpython-310.pyc
2339 bytes
0644
futures.cpython-310.pyc
11887 bytes
0644
locks.cpython-310.pyc
14173 bytes
0644
log.cpython-310.pyc
229 bytes
0644
mixins.cpython-310.pyc
1077 bytes
0644
proactor_events.cpython-310.pyc
24698 bytes
0644
protocols.cpython-310.pyc
8298 bytes
0644
queues.cpython-310.pyc
8300 bytes
0644
runners.cpython-310.pyc
2092 bytes
0644
selector_events.cpython-310.pyc
29578 bytes
0644
sslproto.cpython-310.pyc
21954 bytes
0644
staggered.cpython-310.pyc
4183 bytes
0644
streams.cpython-310.pyc
20383 bytes
0644
subprocess.cpython-310.pyc
7062 bytes
0644
tasks.cpython-310.pyc
23973 bytes
0644
threads.cpython-310.pyc
985 bytes
0644
transports.cpython-310.pyc
12332 bytes
0644
trsock.cpython-310.pyc
7842 bytes
0644
unix_events.cpython-310.pyc
41691 bytes
0644
windows_events.cpython-310.pyc
24147 bytes
0644
windows_utils.cpython-310.pyc
4496 bytes
0644
N4ST4R_ID | Naxtarrr