Groups items into a Map according to the key returned by fn. The async counterpart of Map.groupBy. Keys are compared with SameValueZero, so they may be any value. The key function may be async; its result is awaited.
Map
fn
Map.groupBy
Returns the group key for each item.
A sink resolving to a Map from each key to the items in that group, in source order.
Groups items into a
Mapaccording to the key returned byfn. The async counterpart ofMap.groupBy. Keys are compared with SameValueZero, so they may be any value. The key function may be async; its result is awaited.