• Merges the results of several sorted iterators. In case the results of the individual iterators are not sorted the outcome results will also not be sorted.

    Type Parameters

    • T

    Parameters

    • iterators: AsyncIterator<T, any, undefined>[]

      The iterators whose results need to be merged.

    • Optionalcomparator: ((left: T, right: T) => number)

      The comparator to use to compare the results.

        • (left, right): number
        • Parameters

          • left: T
          • right: T

          Returns number

    Returns AsyncIterable<T>