| FlowOperationsTakeWhileTIn, TOut, TMat Method |
Terminate processing (and cancel the upstream publisher) after
predicate
returns false for the first time. Due to input buffering some elements may have been
requested from upstream publishers that will then not be processed downstream
of this step.
The stream will be completed without producing any elements if
predicate is false for
the first stream element.
Emits when the predicate is true
Backpressures when downstream backpressures
Completes when predicate returned false or upstream completes
Cancels when
predicate returned false or downstream cancels
Namespace:
Akka.Streams.Dsl
Assembly:
Akka.Streams (in Akka.Streams.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public static Flow<TIn, TOut, TMat> TakeWhile<TIn, TOut, TMat>(
this Flow<TIn, TOut, TMat> flow,
Predicate<TOut> predicate
)
[<ExtensionAttribute>]
static member TakeWhile :
flow : Flow<'TIn, 'TOut, 'TMat> *
predicate : Predicate<'TOut> -> Flow<'TIn, 'TOut, 'TMat>
Parameters
- flow
- Type: Akka.Streams.DslFlowTIn, TOut, TMat
TBD - predicate
- Type: SystemPredicateTOut
TBD
Type Parameters
- TIn
- TBD
- TOut
- TBD
- TMat
- TBD
Return Value
Type:
FlowTIn,
TOut,
TMatTBD
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
FlowTIn,
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