INNER CODE UNIT · Python
request_batch_async
unrealcv/unrealcv · client/python/unrealcv/__init__.py:487
def request_batch_async(self, batch):
"""
Send a batch of requests to server without waiting for any reply.
batch : list
a list of requests, each request is a string, such as ['command1', 'command2', ...]
Returns
-------
None
"""
for message in batch:
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):