effect-io-ai

Package: effect
Module: Pool

Pool.Pool

A Pool<A, E> is a pool of items of type A, each of which may be associated with the acquisition and release of resources. An attempt to get an item A from a pool may fail with an error of type E.

When to use

Use when you need to share a bounded set of scoped resources across fibers while the pool manages acquisition, reuse, and release.

See

Signature

export interface Pool<in out A, in out E = never> extends Pipeable {
  readonly [TypeId]: typeof TypeId
  readonly config: Config<A, E>
  readonly state: State<A, E>
}

Source

Since v2.0.0