code: def stop(self, silent=False):
          
          self.send_stop_signal(silent)
          self._lock.wait()
docs: Sends a stop signal to the loop thread and waits until it stops
  
          A stop signal is sent using Loop.send_stop_signal(silent) (see docs for Loop.send_stop_signal)
  
          :param silent: True/False same parameter as in Loop.send_stop_signal(silent)