effect-io-ai

Package: effect
Module: Pool

Pool.Config

Normalized configuration used by a Pool.

When to use

Use as the normalized, read-only description of how a pool acquires, sizes, shares, and resizes its items after construction.

Details

The config stores the acquire effect, size bounds, per-item concurrency, target utilization, and resizing strategy used by the pool implementation.

See

Signature

export interface Config<A, E> {
  readonly acquire: Effect.Effect<A, E, Scope.Scope>
  readonly concurrency: number
  readonly minSize: number
  readonly maxSize: number
  readonly strategy: Strategy<A, E>
  readonly targetUtilization: number
}

Source

Since v4.0.0