MCPcopy 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
35func (pq *PriorityQueue) Dequeue() (interface{}, int) {
36 item := heap.Pop(pq).(*Item)
37 return item.value, item.sourceId
38}
39
40func (pq *PriorityQueue) Len() int {
41 pq.lock.RLock()

Callers 3

MergeSortedMethod · 0.95
TestSortedDataFunction · 0.95

Calls 1

PopMethod · 0.80

Tested by 1

TestSortedDataFunction · 0.76