o
    vhu                     @   s0   d dl Z d dlZd dlZdd Zee deZdS )    Nc                    s@   t  }t }tj|j| g|R i |}|d|I dH 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)asyncioget_running_loopcontextvarscopy_context	functoolspartialrunrun_in_executor)funcargskwargsloopctx	func_call r   c/var/www/html/hyperkenya/venv/lib/python3.10/site-packages/pyhanko_certvalidator/_asyncio_compat.py
_to_thread   s
   r   	to_thread)r   r   r   r   getattrr   r   r   r   r   <module>   s
    	