MCPcopy Create free account
hub / github.com/krau/SaveAny-Bot / Length

Method Length

pkg/queue/queue.go:95–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95func (tq *TaskQueue[T]) Length() int {
96 tq.mu.RLock()
97 defer tq.mu.RUnlock()
98 return tq.tasks.Len()
99}
100
101// ActiveLength returns the number of non-cancelled tasks in the queue.
102func (tq *TaskQueue[T]) ActiveLength() int {

Callers 2

TestAddAndLengthFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestAddAndLengthFunction · 0.64