def run_in_new_thread(self) -> threading.Thread:
        """Runs the runtime loop in a new thread."""
        thread = threading.Thread(target=self.run)
        thread.start()
        return thread
Runs the runtime loop in a new thread.
policy/openpi/packages/openpi-client/src/openpi_client/runtime/runtime.py