Cleanup, improvements, simplicification, scaladoc and javadoc of SourceWithContext and FlowWithContext
This commit is contained in:
parent
d76d259408
commit
a2c811d75a
8 changed files with 560 additions and 226 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue