Cleanup, improvements, simplicification, scaladoc and javadoc of SourceWithContext and FlowWithContext

This commit is contained in:
Johannes Rudolph 2019-01-15 16:53:02 +01:00 committed by Raymond Roestenburg
parent d76d259408
commit a2c811d75a
8 changed files with 560 additions and 226 deletions

View file

@ -3473,5 +3473,5 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
*/
@ApiMayChange
def startContextPropagation[Ctx](extractContext: function.Function[Out, Ctx]): SourceWithContext[Ctx, Out, Mat] =
new javadsl.SourceWithContext(scaladsl.SourceWithContext(this.asScala).mapContext(extractContext.apply))
new scaladsl.SourceWithContext(this.asScala.map(x (x, extractContext.apply(x)))).asJava
}