def shutdown(self) -> Shutdown: self.logger.debug("Shutting down...") self.shutdown_event.set() try: self.dry_run_thread.join(timeout=20) except TimeoutError as e: self.logger.error(e) self.logger.debug("Shutdown complete") return Shutdown()
def shutdown(self) -> Shutdown: self.logger.debug("Shutting down...") self.shutdown_event.set() try: self.device_setter_thread.join(timeout=20) except TimeoutError as e: self.logger.error(e) for ft in self.forward_worker_threads.values(): try: ft.join(timeout=20) except TimeoutError as e: self.logger.error(e) self.logger.debug("Shutdown complete") return Shutdown()
def shutdown(self) -> Future: return Shutdown()
def shutdown(self) -> RPCFuture[Shutdown]: raise Shutdown()
def shutdown(self) -> Shutdown: self._executor.stop() return Shutdown()
def shutdown(self) -> Shutdown: return Shutdown()
def shutdown(self) -> Shutdown: self._worker.shutdown() return Shutdown()