§
    (¶Õi  ã                   ó0   — d Z ddlZddlZddlmZ dZd„ ZdS )z6High-level support for working with threads in asyncioé    Né   )Úevents)Ú	to_threadc             �   óÀ   K  — t          j        ¦   «         }t          j        ¦   «         }t	          j        |j        | g|¢R i |¤Ž}|                     d|¦  «        ƒ d{V —†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_calls         ú&/usr/lib/python3.11/asyncio/threads.pyr   r      sp   è è € õ Ô"Ñ$Ô$€DÝ
Ô
"Ñ
$Ô
$€CÝÔ! #¤'¨4ÐA°$ÐAÐAÐA¸&ÐAÐA€IØ×%Ò% d¨IÑ6Ô6Ð6Ð6Ð6Ð6Ð6Ð6Ð6ó    )Ú__doc__r
   r   Ú r   Ú__all__r   © r   r   ú<module>r      sU   ðØ <Ð <à Ð Ð Ð Ø Ð Ð Ð à Ð Ð Ð Ð Ð ð €ð7ð 7ð 7ð 7ð 7r   