ray.util.queue.Queue.get_nowait_batch#

Queue.get_nowait_batch(num_items: int) List[Any][source]#

Gets items from the queue and returns them in a list in order.

Raises:

Empty – if the queue does not contain the desired number of items