관리-도구
편집 파일: nap.cpython-310.pyc
o ƚReg � @ sB d dl Z d dlZejrd dlZdeddfdd�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-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_vendor/tenacity/nap.pyr s r c @ s2 e Zd ZdZddd�Zdeje ddfd d �ZdS )�sleep_using_eventz0Sleep strategy that waits on an event to be set.�event�threading.Eventr Nc C s || _ d S )N)r )�selfr r r r �__init__% s zsleep_using_event.__init__�timeoutc C s | j j|d� d S )N)r )r �wait)r r r r r �__call__( s zsleep_using_event.__call__)r r r N) �__name__� __module__�__qualname__�__doc__r �typing�Optional�floatr r r r r r "