| SubFlowOperationsIntersperseTOut, TMat, TClosed Method (SubFlowTOut, TMat, TClosed, 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 backpressures
Completes when upstream completes
Cancels when downstream cancels
Namespace:
Akka.Streams.Dsl
Assembly:
Akka.Streams (in Akka.Streams.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax public static SubFlow<TOut, TMat, TClosed> Intersperse<TOut, TMat, TClosed>(
this SubFlow<TOut, TMat, TClosed> flow,
TOut inject
)
[<ExtensionAttribute>]
static member Intersperse :
flow : SubFlow<'TOut, 'TMat, 'TClosed> *
inject : 'TOut -> SubFlow<'TOut, 'TMat, 'TClosed>
Parameters
- flow
- Type: Akka.Streams.DslSubFlowTOut, TMat, TClosed
TBD - inject
- Type: TOut
TBD
Type Parameters
- TOut
- TBD
- TMat
- TBD
- TClosed
- TBD
Return Value
Type:
SubFlowTOut,
TMat,
TClosedTBD
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
SubFlowTOut,
TMat,
TClosed. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions See Also