Creates a task collecting items sharing the same key.
Groups are emitted in first-appearance order of their key, with items inside each group in source order. Keys are
limited to Primitive values and compared with SameValueZero semantics, so NaN matches itself and -0
matches 0.
Warning
Exhaustive: the whole feed is drained before the first group is emitted, so an infinite feed never
completes.
Materialising: the whole feed is held in memory before grouping, so a large feed may exhaust it.
Stateful: groups cover the items drawn, so a task invoked per nested feed or per run groups each
independently, yielding the same key once per invocation rather than once for the feed as a whole.
Creates a task collecting items sharing the same key.
Groups are emitted in first-appearance order of their key, with items inside each group in source order. Keys are limited to Primitive values and compared with
SameValueZerosemantics, soNaNmatches itself and-0matches0.