make Map a GraphStage

This commit is contained in:
Endre Sándor Varga 2016-07-20 13:26:27 +02:00
parent b498347933
commit 5382014133
10 changed files with 108 additions and 75 deletions

View file

@ -475,7 +475,7 @@ trait FlowOps[+Out, +Mat] {
* '''Cancels when''' downstream cancels
*
*/
def map[T](f: Out T): Repr[T] = andThen(Map(f))
def map[T](f: Out T): Repr[T] = via(Map(f))
/**
* Transform each input element into an `Iterable` of output elements that is