Current File : //lib/python3.9/site-packages/pip/_vendor/tenacity/__pycache__/nap.cpython-39.pyc |
a
[��fg � @ s@ d dl Z d dlZejrd dlZedd�dd�ZG dd� d�ZdS )� N)�seconds�returnc C s t �| � 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.pyr s r c @ s6 e Zd ZdZddd�dd�Zeje dd�dd �ZdS )
�sleep_using_eventz0Sleep strategy that waits on an event to be set.zthreading.EventN)�eventr c C s
|| _ d S )N)r )�selfr r r r �__init__% s zsleep_using_event.__init__)�timeoutr c C s | j j|d� d S )N)r )r �wait)r
r r r r �__call__( s zsleep_using_event.__call__) �__name__�
__module__�__qualname__�__doc__r �typing�Optional�floatr r r r r r "