!str #16066 rename connect to via/to

* add missing implicit conversions for ~>
* tests for all combinations when using ~>
This commit is contained in:
Martynas Mickevičius 2014-10-31 10:43:42 +02:00
parent 81bc5c76bc
commit 412003c11e
52 changed files with 308 additions and 240 deletions

View file

@ -18,14 +18,14 @@ trait Sink[-In] {
* of the `Source`, e.g. the `Subscriber` of a [[SubscriberSource]].
*/
def runWith(source: KeyedSource[In])(implicit materializer: FlowMaterializer): source.MaterializedType =
source.connect(this).run().get(source)
source.to(this).run().get(source)
/**
* Connect this `Sink` to a `Source` and run it. The returned value is the materialized value
* of the `Source`, e.g. the `Subscriber` of a [[SubscriberSource]].
*/
def runWith(source: Source[In])(implicit materializer: FlowMaterializer): Unit =
source.connect(this).run()
source.to(this).run()
}
object Sink {