a
    ‚þd_  ã                   @   sf   d dl Z d dlmZ d dlmZ d dlmZ eedƒ dd„ Zdd	„ Zd
d„ Z	eedƒ ee	dƒ dS )é    N)Ú
set_module)Ú_register_builtin)Ú_Awaitz	torch.jitc                 O   s   t jj| g|¢R i |¤ŽS )z
    Creates Await object that will call specified functioni with specified args,
    when it is requested for the result.
    )ÚtorchÚ_CÚ
_awaitable)ÚfuncÚargsÚkwargs© r   úY/var/www/html/stable-diffusion-webui/venv/lib/python3.9/site-packages/torch/jit/_await.pyr   	   s    r   c                 C   s   t j | ¡S )zy
    Requests await the result of execution, if Await is not completed yet,
    the func will be called immediately.
    )r   r   Ú_awaitable_wait)Zawr   r   r   r      s    r   c                 C   s   t j | ¡S )z8
    Creates completed Await with specified result.
    )r   r   Ú_awaitable_nowait)Úor   r   r   r      s    r   zprim::awaitable_waitzprim::awaitable_nowait)
r   Ztorch.utilsr   Ztorch.jit._builtinsr   Ztorch._jit_internalr   r   r   r   r   r   r   r   Ú<module>   s   

