Merge pull request #19886 from trautonen/drop-as-graphstage-trautonen

Replaced PushStage based Drop with GraphStage #19834
This commit is contained in:
Johan Andrén 2016-02-28 17:55:18 +01:00
commit 1c40d64d62
4 changed files with 24 additions and 13 deletions

View file

@ -887,7 +887,8 @@ trait FlowOps[+Out, +Mat] {
*
* '''Cancels when''' downstream cancels
*/
def drop(n: Long): Repr[Out] = andThen(Drop(n))
def drop(n: Long): Repr[Out] =
via(Drop[Out](n))
/**
* Discard the elements received within the given duration at beginning of the stream.