Source.asSourceWithContext

Turns a Source into a SourceWithContext which can propagate a context per element along a stream.

Source operators

Signature

Source.asSourceWithContextSource.asSourceWithContext

Description

See Context Propagation for a general overview of context propagation.

Turns a SourceSource into a SourceWithContextSourceWithContext which can propagate a context per element along a stream. The function passed into asSourceWithContext must turn elements into contexts, one context for every element.

Found an error in this documentation? The source code for this page can be found here. Please feel free to edit and contribute a pull request.