a
Reg @ s@ d dl Z d dlZejrd dlZeddddZG dd dZdS ) N)secondsreturnc 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)timesleep)r r /builddir/build/BUILDROOT/alt-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/pip/_vendor/tenacity/nap.pyr s r c @ s6 e Zd ZdZdddddZeje dddd 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 typingOptionalfloatr r r r r r " s r )r r
TYPE_CHECKING threadingr r r r r r r