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

Function removeFailedItem

packages/effect/src/Pool.ts:675–679  ·  view source on GitHub ↗
(self: Pool<A, E>, item: PoolItem<A, E>)

Source from the content-addressed store, hash-verified

673}
674
675const removeFailedItem = <A, E>(self: Pool<A, E>, item: PoolItem<A, E>): void => {
676 self.state.items.delete(item)
677 self.state.invalidated.delete(item)
678 removeAvailable(self, item)
679}
680
681const leaseItem = <A, E>(
682 self: Pool<A, E>,

Callers 2

getSlowWithFunction · 0.85
waitForItemFunction · 0.85

Calls 2

removeAvailableFunction · 0.85
deleteMethod · 0.65

Tested by

no test coverage detected