a
XC?h � @ s, d dl Z d dlZddlmZ dZdd� ZdS )� N� )�events)� to_threadc � s> t �� }t�� }tj|j| g|�R i |��}|�d |�I d H S )N)r Zget_running_loop�contextvarsZcopy_context� functools�partial�runZrun_in_executor)�func�args�kwargsZloop�ctxZ func_call� r
�4/opt/alt/python39/lib64/python3.9/asyncio/threads.pyr s
r )r r � r �__all__r r
r
r
r �