MCPcopy
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
38func (t *TimeQueue[T]) Len() int {
39 t.mu.Lock()
40 defer t.mu.Unlock()
41 return t.heap.Len()
42}
43
44func (t *TimeQueue[T]) Peek() T {
45 t.mu.Lock()

Callers 15

WriteMethod · 0.45
PeekMethod · 0.45
ResetMethod · 0.45
RemoveMethod · 0.45
GetAllMethod · 0.45
DequeueMethod · 0.45
TestTPQPriorityFunction · 0.45
TestTPQRemoveFunction · 0.45
TestTPQResetFunction · 0.45
TestTPQGetAllFunction · 0.45
TestGenericHeapInitFunction · 0.45

Calls 2

LockMethod · 0.80
UnlockMethod · 0.45

Tested by 13

TestTPQPriorityFunction · 0.36
TestTPQRemoveFunction · 0.36
TestTPQResetFunction · 0.36
TestTPQGetAllFunction · 0.36
TestGenericHeapInitFunction · 0.36
TestGenericHeapPushPopFunction · 0.36
TestApplyHookErrorPolicyFunction · 0.36
TestReadWhileWriteFunction · 0.36
TestPruneTaskRunFunction · 0.36