Closed mdedetrich closed 3 weeks ago
PR is now ready to review, the link-validator failure is not related
I would like a couple of trivial test cases - even if for regression purposes. Also useful as a way of documenting the usage.
Thanks for the review, everything is passing and I have added the @since
, merging.
This PR adds
alsoTo
/alsoToContext
ontoFlowWithContext
/SourceWithContext
which just wrap the underlyingdelegate
methods, this is analogous to the currentmap
/mapContext
methods that already exist.Note that
delegate.alsoTo(Flow.fromFunction { in: (Out, Ctx) => in._2 }.toMat(that)(Keep.right))
is copied from the implementation ofcontramap
. I would have ideally liked to usecontramap
however the method is not available on aGraph[SinkShape[_]]
I didn't add tests due to the sheer triviality of the implementation but can add them if asked.