Function merge

  • Creates an asynchronous iterable that concurrently emits all values yielded from zero or more synchronous or asynchronous iterables.

    When the iterables provided are synchronous, merge is equivalent to interleave, but when one or more of the iterables are asynchronous, values will be yielded from each iterable as soon as they are ready.

    Inspired by RxJS's merge operator.

    Type Parameters

    Type Parameters

    • T

    Parameters

    • Rest ...iterables: (Iterable<T> | AsyncIterable<T>)[]

    Returns AsyncIterableIterator<T>

Generated using TypeDoc