관리-도구
편집 파일: nap.cpython-38.pyc
U ʗ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-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/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 "