class_docstr: Convenience class for creating stoppable threads. 
class_docstr_tok: ["Convenience","class","for","creating","stoppable","threads","."]
docstr: Signals the thread to stop.
docstr_tok: ["Signals","the","thread","to","stop","."]
code: def stop(self):
      """Signals the thread to stop."""
      self._stopped_event.set()
      self.on_thread_stop()
  
file_path: wandb/wandb/vendor/watchdog_0_9_0/wandb_watchdog/utils/__init__.py
imports: import os
  import sys
  import threading
  from wandb_watchdog.utils import platform
  from wandb_watchdog.utils.compat import Event
label_desc: Use image node_id 5 for calling the BaseThread obj's underlying member method code with example usage: obj.stop() without return types