mogami-stream - v0.4.0
    Preparing search index...

    Function toMap

    • Collects values into a Map by sequentially awaiting keySelector for each item and resolves after cleanup.

      Duplicate keys keep the last value without changing key insertion order. Values are not unwrapped; keys use SameValueZero equality. Empty sources return an empty Map.

      Type Parameters

      • T
      • K

      Parameters

      Returns Promise<Map<Awaited<K>, T>>