#19145 fix FlowGroupBySpec

also fix concatSubstreams to have right semantics on groupBy and
introduce mergeSubstreamsWithLimit
This commit is contained in:
Roland Kuhn 2015-12-11 11:15:19 +01:00
parent 15cc65ce9d
commit 149e783363
6 changed files with 63 additions and 17 deletions

View file

@ -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))