 | SourceOperations.SplitWhen<TOut, TMat> Method (Source<TOut, TMat>, Func<TOut, Boolean>) |
This operation applies the given predicate to all incoming elements and
emits them to a stream of output streams, always beginning a new one with
the current element if the given predicate returns true for it.
Namespace:
Akka.Streams.Dsl
Assembly:
Akka.Streams (in Akka.Streams.dll) Version: 1.2.3.129 (1.2.3.129)
Syntaxpublic static SubFlow<TOut, TMat, IRunnableGraph<TMat>> SplitWhen<TOut, TMat>(
this Source<TOut, TMat> flow,
Func<TOut, bool> predicate
)
[<ExtensionAttribute>]
static member SplitWhen :
flow : Source<'TOut, 'TMat> *
predicate : Func<'TOut, bool> -> SubFlow<'TOut, 'TMat, IRunnableGraph<'TMat>>
Parameters
- flow
- Type: Akka.Streams.Dsl.Source<TOut, TMat>
TBD - predicate
- Type: System.Func<TOut, Boolean>
TBD
Type Parameters
- TOut
- TBD
- TMat
- TBD
Return Value
Type:
SubFlow<TOut,
TMat,
IRunnableGraph<TMat>>TBD
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Source<TOut,
TMat>. 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).
See Also