+str,htc #16071, #16072 New Stream Tcp and Http API

* StreamTcp and Http extensions now return Flows and Sources that can be materialized later
* Flow can now be completed with another flow to be turned into a runnable flow
This commit is contained in:
Björn Antonsson 2014-11-28 10:41:57 +01:00
parent cac9137aa9
commit 672d4ed091
43 changed files with 1327 additions and 1236 deletions

View file

@ -42,7 +42,7 @@ object Sink {
* a [[FlowGraphBuilder]] and returns the `UndefinedSource`.
*/
def apply[T](graph: PartialFlowGraph)(block: FlowGraphBuilder UndefinedSource[T]): Sink[T] =
createSinkFromBuilder(new FlowGraphBuilder(graph.graph), block)
createSinkFromBuilder(new FlowGraphBuilder(graph), block)
private def createSinkFromBuilder[T](builder: FlowGraphBuilder, block: FlowGraphBuilder UndefinedSource[T]): Sink[T] = {
val in = block(builder)