def receive_command_data(self, pipe: multiprocessing.Pipe) -> any: if not pipe.empty(): return pipe.get() else: return None