Checks if the queue is empty.
Checks if the queue is at capacity.
Views the last element inserted into the queue, retrying if the queue is empty.
Offers the specified value to the queue, retrying if the queue is at capacity.
Offers each of the elements in the specified collection to the queue up to the maximum capacity of the queue, retrying if there is not capacity in the queue for all of these elements.
Offers each of the elements in the specified collection to the queue up to the maximum capacity of the queue, retrying if there is not capacity in the queue for all of these elements. Returns any remaining elements in the specified collection.
Views the next element in the queue without removing it, retrying if the queue is empty.
Views the next element in the queue without removing it, returning None
if the queue is empty.
Takes a single element from the queue, returning None
if the queue is
empty.
Drops elements from the queue while they do not satisfy the predicate, taking and returning the first element that does satisfy the predicate.
Drops elements from the queue while they do not satisfy the predicate, taking and returning the first element that does satisfy the predicate. Retries if no elements satisfy the predicate.
Returns the number of elements currently in the queue.
Takes a single element from the queue, retrying if the queue is empty.
Takes all elements from the queue.
Takes up to the specified maximum number of elements from the queue.