Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/garethgeorge/backrest
/ Len
Method
Len
internal/queue/timepriorityqueue.go:22–26 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
20
}
21
22
func
(t *TimePriorityQueue[T]) Len() int {
23
t.tqueue.mu.Lock()
24
defer
t.tqueue.mu.Unlock()
25
return
t.tqueue.heap.Len() + t.ready.Len()
26
}
27
28
func
(t *TimePriorityQueue[T]) Peek() T {
29
t.tqueue.mu.Lock()
Callers
5
Peek
Method · 0.45
Reset
Method · 0.45
GetAll
Method · 0.45
Remove
Method · 0.45
Dequeue
Method · 0.45
Calls
2
Lock
Method · 0.80
Unlock
Method · 0.45
Tested by
no test coverage detected