Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/garethgeorge/backrest
/ Len
Method
Len
internal/queue/timequeue.go:38–42 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
36
}
37
38
func
(t *TimeQueue[T]) Len() int {
39
t.mu.Lock()
40
defer
t.mu.Unlock()
41
return
t.heap.Len()
42
}
43
44
func
(t *TimeQueue[T]) Peek() T {
45
t.mu.Lock()
Callers
15
Write
Method · 0.45
Peek
Method · 0.45
Reset
Method · 0.45
Remove
Method · 0.45
GetAll
Method · 0.45
Dequeue
Method · 0.45
TestTPQPriority
Function · 0.45
TestTPQMixedReadinessStates
Function · 0.45
TestTPQRemove
Function · 0.45
TestTPQReset
Function · 0.45
TestTPQGetAll
Function · 0.45
TestGenericHeapInit
Function · 0.45
Calls
2
Lock
Method · 0.80
Unlock
Method · 0.45
Tested by
13
TestTPQPriority
Function · 0.36
TestTPQMixedReadinessStates
Function · 0.36
TestTPQRemove
Function · 0.36
TestTPQReset
Function · 0.36
TestTPQGetAll
Function · 0.36
TestGenericHeapInit
Function · 0.36
TestGenericHeapPushPop
Function · 0.36
TestApplyHookErrorPolicy
Function · 0.36
TestReadWhileWrite
Function · 0.36
TestPruneTaskRun
Function · 0.36
TestForgetSnapshotTaskRun
Function · 0.36
TestScheduledForgetTaskRun
Function · 0.36