code: def halt(self):
          
          if self._callback:
              self._thread_continue = False
              self._thread.join()
docs: halt: None -> None
  
          If this instance has a separate thread running, it will be
          halted. This method will wait until the thread has cleaned
          up before returning.