=str Sugar to make flows between vertices optional

This commit is contained in:
Patrik Nordwall 2014-09-11 07:45:19 +02:00
parent 8bfd0c077e
commit b8c5019185
4 changed files with 51 additions and 3 deletions

View file

@ -19,7 +19,7 @@ object FlowFrom {
* Helper to create `Flow` without [[Source]].
* Example usage: `FlowFrom[Int]`
*/
def apply[T]: ProcessorFlow[T, T] = ProcessorFlow[T, T](Nil)
def apply[T]: ProcessorFlow[T, T] = ProcessorFlow.empty[T]
/**
* Helper to create `Flow` with [[Source]] from `Publisher`.