TxPriorityQueue19
Constructors
Models
Guards
Getters
isEmptyconstReturns true if the queue is empty.isNonEmptyconstReturns true if the queue has at least one element.peekconstObserves the smallest element without removing it.peekOptionconstObserves the smallest element without removing it, returning None when the queue is empty.sizeconstReturns the number of elements in the queue.Filtering
Mutations
offerconstInserts an element into the queue in sorted position.offerAllconstInserts all elements from an iterable into the queue.takeconstTakes the smallest element from the queue.takeAllconstTakes all elements from the queue, returning them in priority order.takeOptionconstTries to take the smallest element.takeUpToconstTakes up to n elements from the queue in priority order.