third_party/blink/tools/blinkpy/web_tests/servers/server_base.py
def _wait_for_action(self, action, wait_secs=20.0, sleep_secs=1.0):
        """Repeat the action for wait_sec or until it succeeds, sleeping for sleep_secs
        in between each attempt. Returns whether it succeeded.
        """
        start_time = self._port_obj.host.time()
        while self._port_obj.host.time() - start_time < wait_secs:
            if action():
                return True
            _log.debug('Waiting for action: %s', action)
            self._port_obj.host.sleep(sleep_secs)

        return False
Repeat the action for wait_sec or until it succeeds, sleeping for sleep_secs
        in between each attempt. Returns whether it succeeded.
        
Repeat the action for wait_sec or until it succeeds, sleeping for sleep_secs
in between each attempt. Returns whether it succeeded.
Repeat the action for wait_sec or until it succeeds sleeping for sleep_secs in between each attempt . Returns whether it succeeded .
def _wait_for_action(self, action, wait_secs=20.0, sleep_secs=1.0):
        start_time = self._port_obj.host.time()
        while self._port_obj.host.time() - start_time < wait_secs:
            if action():
                return True
            _log.debug('Waiting for action: %s', action)
            self._port_obj.host.sleep(sleep_secs)
        return False
def _wait_for_action ( self , action , wait_secs = 20.0 , sleep_secs = 1.0 ) : start_time = self . _port_obj . host . time ( ) while self . _port_obj . host . time ( ) - start_time < wait_secs : if action ( ) : return True _log . debug ( 'Waiting for action: %s' , action ) self . _port_obj . host . sleep ( sleep_secs ) return False
Repeat the action for wait_sec or until it succeeds, sleeping for sleep_secs
in between each attempt.
Repeat the action for wait_sec or until it succeeds sleeping for sleep_secs in between each attempt .
"""Repeat the action for wait_sec or until it succeeds, sleeping for sleep_secs
        in between each attempt. Returns whether it succeeded.
        """
self
action
wait_secs
sleep_secs