code: def stop(self) -> None:
          
          self._running = False
          if self._timeout is not None:
              self.io_loop.remove_timeout(self._timeout)
              self._timeout = None
docs: Stops the timer.