Executes an array of promises in batches using Promise.allSettled.

  • Type Parameters

    • T

    Parameters

    • promises: Promise<T>[]

      An array of promises to be executed

    • batchSize: number

      The size of each batch

    Returns Promise<PromiseSettledResult<T>[]>