def wait_for_internal(self, event):
    wait_time_seconds = self.wait_time(event)
    start = time.time()
    # TODO(cs): why - 0.01?
    end = start + wait_time_seconds - 0.01 + self.epsilon_seconds
    if event.timeout_disallowed:
      # Reaallllly far in the future
      end = 30000000000 # Fri, 30 Aug 2920 05:20:00 GMT
      log.debug("Waiting for %s forever" %
                ( repr(event).replace("\n", "")))
    else:
      log.debug("Waiting for %s (maximum wait time: %.0f ms)" %
            ( repr(event).replace("\n", ""), self.epsilon_seconds * 1000) )
    self._poll_event(event, end)
dataset/ETHPy150Open ucb-sts/sts/sts/control_flow/event_scheduler.py/EventScheduler.wait_for_internal/original