class_docstr: A first-in, first-out queue implementation on Ray.
  
  The behavior and use cases are similar to those of the asyncio.Queue class.
  
  Features both sync and async put and get methods.  Provides the option to
  block until space is available when calling put on a full queue,
  or to block until items are available when calling get on an empty queue.
  
  Optionally supports batched put and get operations to minimize
  serialization overhead.
  
  Args:
      maxsize (optional, int): maximum size of the queue. If zero, size is
          unbounded.
      actor_options (optional, Dict): Dictionary of options to pass into
          the QueueActor during creation. These are directly passed into
          QueueActor.options(...). This could be useful if you
          need to pass in custom resource requirements, for example.
  
  Examples:
      .. testcode::
  
          from ray.util.queue import Queue
          q = Queue()
          items = list(range(10))
          for item in items:
              q.put(item)
          for item in items:
              assert item == q.get()
          # Create Queue with the underlying actor reserving 1 CPU.
          q = Queue(actor_options={"num_cpus": 1})
docstr: Equivalent to get(block=False).
  
  Raises:
      Empty: if the queue is empty.
docstr_tok: ["Equivalent","to","get","(","block=False",")",".","Raises",":","Empty",":","if","the","queue","is","empty","."]
code: def get_nowait(self) -> Any:
      """Equivalent to get(block=False).
  
      Raises:
          Empty: if the queue is empty.
      """
      return self.get(block=False)
  
imports: import asyncio
  from typing import Optional, Any, List, Dict
  from collections.abc import Iterable
  import ray
  from ray.util.annotations import PublicAPI
label_desc: Use image node_id 11 for calling the Queue obj's underlying member method code with example usage: obj.get_nowait() and returns: self