We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9abd0f4 commit a0fcdceCopy full SHA for a0fcdce
plugins/v1/priority_queue/interface.go
@@ -2,9 +2,11 @@ package priorityqueue
2
3
// Queue is a binary heap interface
4
type Queue interface {
5
+ // PeekPriority returns the highest priority
6
+ PeekPriority() int64
7
// Insert adds an item to the queue
8
Insert(item Item)
- // ExtractMin returns the item with the lowest priority
9
+ // ExtractMin returns the item with the highest priority (less value is the highest priority)
10
ExtractMin() Item
11
// Len returns the number of items in the queue
12
Len() uint64
0 commit comments