o ƚReg@sBddlZddlZejrddlZdeddfddZGdddZdS)NsecondsreturncCst|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)rr/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.pyrsrc@s2eZdZdZd ddZdejeddfd d ZdS) sleep_using_eventz0Sleep strategy that waits on an event to be set.eventthreading.EventrNcCs ||_dS)N)r )selfr rrr__init__%s zsleep_using_event.__init__timeoutcCs|jj|ddS)N)r )r wait)r r rrr__call__(szsleep_using_event.__call__)r r rN) __name__ __module__ __qualname____doc__r typingOptionalfloatrrrrrr"s r)rr TYPE_CHECKING threadingrrrrrrrs