@dusrel/image API
    Preparing search index...

    Function runPool

    • A tiny worker pool (pure scheduling; unit tested in Node). Runs worker over items with at most concurrency in flight, preserves input order in the results, and honours the abort signal.

      Type Parameters

      • T
      • R

      Parameters

      • items: readonly T[]
      • concurrency: number
      • worker: (item: T, index: number) => Promise<R>
      • options: {
            continueOnError?: boolean;
            onSettle?: (index: number, settled: Settled<R>) => void;
            signal?: AbortSignal;
        } = {}

      Returns Promise<Settled<R>[]>