ray.util.queue.Queue.get_nowait#

Queue.get_nowait() Any[source]#

Equivalent to get(block=False).

Returns:

The next item in the queue.

Raises:

Empty – if the queue is empty.