Circle V2 API Docs
    Preparing search index...
    • Runs worker over items with at most limit in flight, resolving to the results in INPUT order. Workers are pulled off a shared cursor rather than sliced into batches, so one slow field never idles the other lanes waiting for its batch to drain.

      A rejecting worker rejects the whole map, so callers that want partial results (the form-filling runner does — PR7 persists incrementally) must resolve their failures into values themselves.

      Type Parameters

      • TItem
      • TResult

      Parameters

      • items: readonly TItem[]
      • limit: number
      • worker: (item: TItem, index: number) => Promise<TResult>

      Returns Promise<TResult[]>