def LoopUntilTimeoutOrTrue(timeout_s, function, sleep_s=1):  # pylint: disable=invalid-name
  return LoopUntilTimeoutOrValid(timeout_s, function, lambda x: x, sleep_s)
Loops until the specified function returns True or a timeout is reached.
dataset/ETHPy150Open google/openhtf/openhtf/util/timeouts.py/LoopUntilTimeoutOrTrue