#19145 fix FlowGroupBySpec
also fix concatSubstreams to have right semantics on groupBy and introduce mergeSubstreamsWithLimit
This commit is contained in:
parent
15cc65ce9d
commit
149e783363
6 changed files with 63 additions and 17 deletions
|
|
@ -28,9 +28,7 @@ class SubFlowImpl[In, Out, Mat, F[+_], C](val subFlow: Flow[In, Out, Unit],
|
|||
override def withAttributes(attr: Attributes): SubFlow[Out, Mat, F, C] =
|
||||
new SubFlowImpl[In, Out, Mat, F, C](subFlow.withAttributes(attr), mergeBackFunction, finishFunction)
|
||||
|
||||
override def mergeSubstreams: F[Out] = mergeBackFunction(subFlow, Int.MaxValue)
|
||||
|
||||
override def concatSubstreams: F[Out] = mergeBackFunction(subFlow, 1)
|
||||
override def mergeSubstreamsWithParallelism(breadth: Int): F[Out] = mergeBackFunction(subFlow, breadth)
|
||||
|
||||
def to[M](sink: Graph[SinkShape[Out], M]): C = finishFunction(subFlow.to(sink))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue