Ë
    òT•j  ã                   ó.   — d Z ddlZddlZddlmZ dZd„ Zy)z6High-level support for working with threads in asyncioé    Né   )Úevents)Ú	to_threadc             �   óÚ   K  — t        j                  «       }t        j                  «       }t	        j
                  |j                  | g|¢­i |¤Ž}|j                  d|«      ƒ d{  –—† S 7 Œ­w)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.12/asyncio/threads.pyr   r      s]   è ø€ ô ×"Ñ"Ó$€DÜ
×
"Ñ
"Ó
$€CÜ×!Ñ! #§'¡'¨4ÐA°$ÒA¸&ÑA€IØ×%Ñ% d¨IÓ6×6Ð6Ð6ús   ‚A"A+Á$A)Á%A+)Ú__doc__r
   r   Ú r   Ú__all__r   © ó    r   ú<module>r      s   ðÙ <ã Û å ð €ó7r   