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

Function currentUsage

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

Source from the content-addressed store, hash-verified

586 ),
587 (scope, exit) => exit._tag === "Failure" ? Scope.close(scope, exit) : Effect.void
588 )
589
590const currentUsage = <A, E>(self: Pool<A, E>) => {
591 let count = self.state.waiters
592 for (const item of self.state.items) {
593 count += item.refCount
594 }
595 return count
596}
597

Callers 1

targetSizeFunction · 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…