%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/utils/ |
Current File : //lib/python2.7/site-packages/salt/utils/timeout.pyc |
� ���^c @@ se d d l m Z m Z m Z d d l Z d d l Z e j e � Z d Z d d d d d d � Z d S( i ( t absolute_importt print_functiont unicode_literalsNgffffff�?i i c C@ s� | d k r t � } n t j � | } t | p4 d | � t } | } x_ t j � | k r� | | | � } | r{ | } PqJ t j | � t | | t j � � t } qJ Wt j � | k r� t j d | | � n | S( u} Call `func` at regular intervals and Waits until the given function returns a truthy value within the given timeout and returns that value. @param func: @type func: function @param timeout: @type timeout: int | float @param step: Interval at which we should check for the value @type step: int | float @param default: Value that should be returned should `func` not return a truthy value @type default: @param func_args: *args for `func` @type func_args: list | tuple @param func_kwargs: **kwargs for `func` @type func_kwargs: dict @return: `default` or result of `func` i u1 Exceeded waiting time (%s seconds) to exectute %sN( t Nonet dictt timet mint BLUR_FACTORt sleept logt warning( t funct timeoutt stept defaultt func_argst func_kwargst max_timet rett call_ret( ( s6 /usr/lib/python2.7/site-packages/salt/utils/timeout.pyt wait_for s !( ( t __future__R R R t loggingR t getLoggert __name__R R R R ( ( ( s6 /usr/lib/python2.7/site-packages/salt/utils/timeout.pyt <module> s