Merge pull request #20325 from akka/wip-convert-scan-to-graphstage-√
Converts the Scan-operation from PushPullStage to GraphStage
This commit is contained in:
commit
dfbcd948bf
7 changed files with 54 additions and 80 deletions
|
|
@ -768,7 +768,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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue