Replaced PushStage based Drop with GraphStage #19834

This commit is contained in:
Tapio Rautonen 2016-02-26 02:51:07 +02:00
parent 2fcc1a3a45
commit 7856916e4d
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.