• Converts the existing async-iterable into a promise which resolves a Set.

    Type Parameters

    • TSource

      The type of elements in the source sequence.

    Parameters

    • source: AsyncIterable<TSource>

      The async-iterable to convert into a set.

    • Optional signal: AbortSignal

      An optional abort signal to cancel the operation at any time.

    Returns Promise<Set<TSource>>

    A promise which contains a Set with all the elements from the async-iterable.

Generated using TypeDoc