With previous versions of Akka Streams, groupBy
returned a Source
of Source
s that could be materialized into a Source[Seq[A]]
.
With Akka Streams 2.4 I see that groupBy
returns a SubFlow
- it's not clear to me how use this. The transformations I need to apply to the flow have to have the whole Seq
available, so I can't just map
over the SubFlow
(I think).
I've written a class that extends GraphStage
that does the aggregation via a mutable collection in the GraphStageLogic
, but is there in-built functionality for this? Am I missing the point of SubFlow
?