Package: effect
Module: Pool
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.
See
Strategy for the custom strategy callbacks that receive and return pool itemsState for the runtime sets that store active, available, and invalidated pool itemsSignature
export interface PoolItem<A, E> {
readonly exit: Exit.Exit<A, E>
finalizer: Effect.Effect<void>
refCount: number
disableReclaim: boolean
}
Since v4.0.0