MCPcopy
hub / github.com/cortexlabs/cortex / QueueLength

Method QueueLength

pkg/proxy/breaker.go:177–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175}
176
177func (b *Breaker) QueueLength() int64 {
178 return b.totalSlots - int64(b.sem.Capacity())
179}
180
181// newSemaphore creates a semaphore with the desired initial capacity.
182func newSemaphore(maxCapacity, initialCapacity int) *semaphore {

Callers

nothing calls this directly

Calls 1

CapacityMethod · 0.45

Tested by

no test coverage detected