MCPcopy Create free account
hub / github.com/cortexproject/cortex / Pop

Method Pop

pkg/util/priority_queue.go:37–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func (q *queue) Pop() any {
38 old := *q
39 n := len(old)
40 x := old[n-1]
41 *q = old[0 : n-1]
42 return x
43}
44
45// NewPriorityQueue makes a new priority queue.
46func NewPriorityQueue(lengthGauge prometheus.Gauge) *PriorityQueue {

Callers 1

DequeueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected