Function filterAsyncParallel

  • Execute the filter callback async in parallel on each of the items in the specified array

    Type Parameters

    • T

    Parameters

    • array: Iterable<T>

      An Iterable to execute the callback on

    • callback: ((item) => PromiseLike<boolean>)

      The callback to execute for each item

        • (item): PromiseLike<boolean>
        • Parameters

          • item: T

          Returns PromiseLike<boolean>

    • parallelism: number = 2

    Returns Promise<T[]>