Closed dieu closed 5 years ago
@johnynek added the test for check use case, but unfortunately, I have to change the signature of buildFlow
from Try[Flow[_]]
to Try[Option[Flow[_]]]
because we can have totally empty flowDef in case of toIterableExcution
when we don't need to do anything only addIter
. what do you think?
We can use special exception and keep the signature as is, but I'm not sure that's a good approach.
Hey,
When we work with
FlowDef
andExecution.fromFn
, writes not inserted directly into flowDef anymore, so we need tobuildFlow
first and then check if the flow doesn't have sinks. Otherwise, we will always have empty flowDef.