FlowOperationsIntersperse Method |
Name | Description | |
---|---|---|
IntersperseTIn, TOut, TMat(FlowTIn, TOut, TMat, TOut) |
Intersperses stream with provided element, similar to how Join(String, String)
injects a separator between a collection's elements.
Additionally can inject start and end marker elements to stream.
In case you want to only prepend or only append an element (yet still use the intercept feature
to inject a separator between elements, you may want to use the following pattern instead of the 3-argument
version of intersperse (See ConcatTIn, TOut for semantics details).
Emits when upstream emits (or before with the inject element if provided) Backpressures when downstream backpressuresCompletes when upstream completes Cancels when downstream cancels | |
IntersperseTIn, TOut, TMat(FlowTIn, TOut, TMat, TOut, TOut, TOut) |
Intersperses stream with provided element, similar to how Join(String, String)
injects a separator between a collection's elements.
Additionally can inject start and end marker elements to stream.
In case you want to only prepend or only append an element (yet still use the intercept feature
to inject a separator between elements, you may want to use the following pattern instead of the 3-argument
version of intersperse (See ConcatTIn, TOut for semantics details).
Emits when upstream emits (or before with the start element if provided) Backpressures when downstream backpressuresCompletes when upstream completes Cancels when downstream cancels |