def run_monitor(self):
        self.monitor()
        try:
            while self._monitor_continously:
                time.sleep(.02)
        except KeyboardInterrupt:
            self.stop_monitor()
Called by main thread methods like __main__ so Ctrl-C works
dataset/ETHPy150Open cmheisel/pywatch/src/pywatch/watcher.py/Watcher.run_monitor