def start_handler_detection(self): if not self.is_detection_running(): self.__detection_running = True self.__detection_text_count = 0 self.__detection_success_count.clear() self.__detection_start_time = time.time() misc_util.start_thread(self.__detection_thread, (), 'HandlerDetector')
def start(self): self.mcdr_server.logger.debug('{} is starting'.format(self.get_name())) self.executor_thread = misc_util.start_thread(self.loop, (), self.get_name()) return self.executor_thread
def check_update(self, condition_check: Callable[[], bool], reply_func: Callable[[Union[str or RTextBase]], Any]): self.__last_query_time = time.time() misc_util.start_thread(self.__check_update, (condition_check, reply_func), 'CheckUpdate')
def check_update_start(self): self.check_update_thread = misc_util.start_thread( self.check_update_loop, (), type(self).__name__)