def wait_until(cond_func, timeout=120):
  """Wait until the specified function (with no args) returns true"""
  start_time = time()
  while not cond_func():
    if timeout > time() - start_time:
      raise Exception("wait_until timeout of {0}s reached".format(timeout))
    sleep(0.1)
dataset/ETHPy150Open linkedin/mobster/src/linkedin/mobster/utils.py/wait_until/swapped operands of `>`