Current File : //lib/python3.9/site-packages/pip/_vendor/tenacity/__pycache__/nap.cpython-39.pyc
a

[��fg�@s@ddlZddlZejrddlZedd�dd�ZGdd�d�ZdS)�N)�seconds�returncCst�|�dS)z�
    Sleep strategy that delays execution for a given number of seconds.

    This is the default strategy, and may be mocked out for unit testing.
    N)�time�sleep)r�r�</usr/lib/python3.9/site-packages/pip/_vendor/tenacity/nap.pyrsrc@s6eZdZdZddd�dd�Zejedd�dd	�ZdS)
�sleep_using_eventz0Sleep strategy that waits on an event to be set.zthreading.EventN)�eventrcCs
||_dS)N)r	)�selfr	rrr�__init__%szsleep_using_event.__init__)�timeoutrcCs|jj|d�dS)N)r)r	�wait)r
rrrr�__call__(szsleep_using_event.__call__)	�__name__�
__module__�__qualname__�__doc__r�typing�Optional�floatrrrrrr"sr)rr�
TYPE_CHECKING�	threadingrrrrrrr�<module>s