def METHOD_NAME(self):
    self._startup_event.set()
    while not self._endloop:
        self._event.wait(self.interval)
        self._event.clear()
        if self._last_operation != self._operation or time.time() - self._last_update >= self.interval:
            self.draw()
            self.flush_output()