Starts the timer.
(self)
| 891 | self._timeout = None # type: object |
| 892 | |
| 893 | def start(self) -> None: |
| 894 | """Starts the timer.""" |
| 895 | # Looking up the IOLoop here allows to first instantiate the |
| 896 | # PeriodicCallback in another thread, then start it using |
| 897 | # IOLoop.add_callback(). |
| 898 | self.io_loop = IOLoop.current() |
| 899 | self._running = True |
| 900 | self._next_timeout = self.io_loop.time() |
| 901 | self._schedule_next() |
| 902 | |
| 903 | def stop(self) -> None: |
| 904 | """Stops the timer.""" |