class documentation
class PriorityQueue(Protocol[
High-level specification of a priority queue.
Method | __iter__ |
Iterate all of the values in the priority queue, in an unspecified order. |
Method | add |
Add an item to the priority queue. |
Method | get |
Consume the lowest item from the priority queue. |
Method | peek |
Examine the lowest item from the priority queue without modifying the queue. |
Method | remove |
Remove an item and return whether it was removed or not. |