MCPcopy Create free account
hub / github.com/effect-app/libs / activeSize

Function activeSize

repos/effect/packages/effect/src/Pool.ts:603–605  ·  view source on GitHub ↗
(self: Pool<A, E>)

Source from the content-addressed store, hash-verified

601 const target = Math.ceil(utilization / self.config.concurrency)
602 return Math.min(Math.max(self.config.minSize, target), self.config.maxSize)
603}
604
605const activeSize = <A, E>(self: Pool<A, E>) => {
606 return self.state.items.size - self.state.invalidated.size
607}
608

Callers 2

Pool.tsFile · 0.85
resizeLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…