Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
threads.cpython-314.pyc16 linesDownload Raw Back to __pycache__
1+
2��i��0�Rt^RIt^RIt^RIHtRtRtR#)z6High-level support for working with threads in asyncioN)�eventsc���"�\P!4p\P!4p\P3!VPV.VO5/VBpVPRV4GRjx�L4#L5i)anAsynchronously run function *func* in a separate thread.5 6Any *args and **kwargs supplied for this function are directly passed7to *func*. Also, the current :class:`contextvars.Context` is propagated,8allowing context variables from the main thread to be accessed in the9separate thread.10 11Return a coroutine that can be awaited to get the eventual result of *func*.12N)r�get_running_loop�contextvars�copy_context�	functools�partial�run�run_in_executor)�func�args�kwargs�loop�ctx�	func_calls"*,   �Lib\asyncio\threads.py�	to_threadrs\����"�"�$�D�13�14"�15"�16$�C��!�!�#�'�'�4�A�$�A�&�A�I��%�%�d�I�6�6�6�6�s�A%A.�'A,�(A.)r)�__doc__rr�r�__all__r��r�<module>rs��<������
7r
codekingpro/portable-devtools · Team Ai