Converts the Scan-operation from PushPullStage to GraphStage

This commit is contained in:
Viktor Klang 2016-04-14 17:33:19 +02:00
parent a1423b6e7d
commit 455805cda9
7 changed files with 54 additions and 80 deletions

View file

@ -745,7 +745,7 @@ trait FlowOps[+Out, +Mat] {
*
* '''Cancels when''' downstream cancels
*/
def scan[T](zero: T)(f: (T, Out) T): Repr[T] = andThen(Scan(zero, f))
def scan[T](zero: T)(f: (T, Out) T): Repr[T] = via(Scan(zero, f))
/**
* Similar to `scan` but only emits its result when the upstream completes,