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.
export interface interface 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.
PoolItem<function (type parameter) A in PoolItem<A, E>A, function (type parameter) E in PoolItem<A, E>E> {
readonly PoolItem<A, E>.exit: Exit.Exit<A, E>exit: import ExitExit.type Exit.Exit = /*unresolved*/ anyExit<function (type parameter) A in PoolItem<A, E>A, function (type parameter) E in PoolItem<A, E>E>
PoolItem<A, E>.finalizer: Effect.Effect<void>(property) PoolItem<A, E>.finalizer: {
pipe: { <A>(this: A): A; <A, B = never>(this: A, ab: (_: A) => B): B; <A, B = never, C = never>(this: A, ab: (_: A) => B, bc: (_: B) => C): C; <A, B = never, C = never, D = never>(this: A, ab: (_: A) => B, bc: (_: B) => C, cd: (_: C) => D): D; <…;
toString: () => string;
toJSON: () => unknown;
}
finalizer: import EffectEffect.type Effect.Effect = /*unresolved*/ anyEffect<void>
PoolItem<A, E>.refCount: numberrefCount: number
PoolItem<A, E>.disableReclaim: booleandisableReclaim: boolean
}