관리-도구
편집 파일: nap.cpython-39.pyc
a ��Reg � @ 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 ��/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 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 "