Replaced PushStage based Drop with GraphStage #19834
This commit is contained in:
parent
2fcc1a3a45
commit
7856916e4d
4 changed files with 24 additions and 13 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue