MCPcopy Create free account
hub / github.com/Effect-TS/effect / resize

Function resize

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

Source from the content-addressed store, hash-verified

542 })
543
544const resize = <A, E>(self: Pool<A, E>): Effect.Effect<void> =>
545 self.state.resizeSemaphore.withPermits(1)(resizeLoop(self))
546
547const resizeLoop = <A, E>(self: Pool<A, E>): Effect.Effect<void> =>
548 Effect.suspend(() => {

Callers 3

makeWithStrategyFunction · 0.85
Pool.tsFile · 0.85
invalidatePoolItemFunction · 0.85

Calls 2

resizeLoopFunction · 0.85
withPermitsMethod · 0.65

Tested by

no test coverage detected