Hyperlinkv0.8.0-beta.28

Pool

Pool.PoolIteminterfaceeffect/Pool.ts:142
PoolItem<A, E>

Internal record for a value managed by a Pool.

When to use

Use when implementing a custom pool Strategy that needs to inspect acquired items, track reference counts, or return reclaimable items to the pool.

Details

Each item stores the acquisition Exit, its finalizer, the current reference count, and whether automatic reclaiming has been disabled because the item was invalidated.

Source effect/Pool.ts:1426 lines
export interface PoolItem<A, E> {
  readonly exit: Exit.Exit<A, E>
  finalizer: Effect.Effect<void>
  refCount: number
  disableReclaim: boolean
}
Referenced by 2 symbols