Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chrislusf/glow
/ Dequeue
Method
Dequeue
util/priority_queue.go:35–38 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
33
}
34
35
func
(pq *PriorityQueue) Dequeue() (
interface
{}, int) {
36
item := heap.Pop(pq).(*Item)
37
return
item.value, item.sourceId
38
}
39
40
func
(pq *PriorityQueue) Len() int {
41
pq.lock.RLock()
Callers
3
MergeSorted
Method · 0.95
TestSortedData
Function · 0.95
BackgroundEvictionLoop
Method · 0.80
Calls
1
Pop
Method · 0.80
Tested by
1
TestSortedData
Function · 0.76