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

@ -215,11 +215,12 @@ final class Source[+Out, +Mat](
combineRest(2, rest.iterator)
})
/**
* API MAY CHANGE
*/
@ApiMayChange
def startContextPropagation[Ctx](f: Out Ctx): SourceWithContext[Ctx, Out, Mat] = SourceWithContext(this).mapContext(f)
def startContextPropagation[Ctx](f: Out Ctx): SourceWithContext[Ctx, Out, Mat] = new SourceWithContext(this.map(e (e, f(e))))
}
object Source {