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