!str #16066 rename connect to via/to
* add missing implicit conversions for ~> * tests for all combinations when using ~>
This commit is contained in:
parent
81bc5c76bc
commit
412003c11e
52 changed files with 308 additions and 240 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue