Type Alias BulkheadSettings<TParameters, TContext>

BulkheadSettings: BulkheadCallbacks<TParameters, TContext> & {
    interval?: TimeSpan;
    maxCapacity?: number | null;
    maxConcurrency?: number;
}

IMPORT_PATH: "@daiso-tech/core/async"

Type Parameters

Type declaration

  • Optionalinterval?: TimeSpan
    import { TimeSpan } from "@daiso-tech/core/utilities";

    TimeSpan.fromMilliseconds(0)
  • OptionalmaxCapacity?: number | null

    The maximum capacity of the promise queue. If null, the queue can grow indefinitely. If a number is provided and the queue exceeds this limit, an error will be thrown, and no further promises will be enqueued.

    {null}
    
  • OptionalmaxConcurrency?: number

    The maximum number of promises allowed to run concurrently. If this limit is exceeded, additional promises will be queued until a slot becomes available.

    {25}