Stops the observer thread gracefully.
(self)
| 375 | info_logger("Code watcher observer thread started.") |
| 376 | |
| 377 | def stop(self): |
| 378 | """Stops the observer thread gracefully.""" |
| 379 | if self.observer.is_alive(): |
| 380 | self.observer.stop() |
| 381 | self.observer.join() # Wait for the thread to terminate. |
| 382 | info_logger("Code watcher observer thread stopped.") |
no test coverage detected