Get all items present in the queue, non-blocking.
q (Queue) – The queue to query
Items retrieved from the queue.
List[Any]