INNER CODE UNIT · Python

request_async

unrealcv/unrealcv · client/python/unrealcv/__init__.py:465

    def request_async(self, message):
        """
        Send request without waiting for any reply
        """
        if isinstance(message, list):
            return self.request_batch_async(message)

        self._warn_if_command_maybe_unsupported(message)

        if not isinstance(message, bytes):
            message = message.encode('utf-8')

        raw_message = b'%d:%s' % (self.send_message_id, message)
        if not self.send(raw_message):
            raise ConnectionError('Failed to send: socket is closed')

        self.send_message_id += 1

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…