• Converts an async-iterable to a map with a key selector and options for an element selector and cancellation.

    Type Parameters

    • TSource

      The type of elements in the source collection.

    • TKey

      The type of key used for the map.

    • TElement = TSource

      The type of element to use for the map.

    Parameters

    • source: AsyncIterable<TSource>

      The source collection to turn into a map.

    • Optional options: ToMapOptions<TSource, TKey, TElement>

    Returns Promise<Map<TKey, TElement | TSource>>

Generated using TypeDoc