Replace PushStage-based Filter with GraphStage (part of #19834) (#20269)

This commit is contained in:
Michał Płachta 2016-04-14 11:04:08 +02:00 committed by Konrad Malawski
parent 66a0aa280d
commit 8376fa8cfd
6 changed files with 61 additions and 33 deletions

View file

@ -581,7 +581,7 @@ trait FlowOps[+Out, +Mat] {
*
* '''Cancels when''' downstream cancels
*/
def filter(p: Out Boolean): Repr[Out] = andThen(Filter(p))
def filter(p: Out Boolean): Repr[Out] = via(Filter(p))
/**
* Only pass on those elements that NOT satisfy the given predicate.