MCPcopy
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
22func (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
28func (t *TimePriorityQueue[T]) Peek() T {
29 t.tqueue.mu.Lock()

Callers 5

PeekMethod · 0.45
ResetMethod · 0.45
GetAllMethod · 0.45
RemoveMethod · 0.45
DequeueMethod · 0.45

Calls 2

LockMethod · 0.80
UnlockMethod · 0.45

Tested by

no test coverage detected