| FlowOperationsWatchTerminationTIn, TOut, TMat, TMat2 Method |
Materializes to
TaskTResult that completes on getting termination message.
The task completes with success when received complete message from upstream or cancel
from downstream. It fails with the same error when received error message from
downstream.
It is recommended to use the internally optimized
LeftTLeft, TRight(TLeft, TRight) and
RightTLeft, TRight(TLeft, TRight) combiners
where appropriate instead of manually writing functions that pass through one of the values.
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, TMat2> WatchTermination<TIn, TOut, TMat, TMat2>(
this Flow<TIn, TOut, TMat> flow,
Func<TMat, Task, TMat2> materializerFunction
)
where TIn : TOut
[<ExtensionAttribute>]
static member WatchTermination :
flow : Flow<'TIn, 'TOut, 'TMat> *
materializerFunction : Func<'TMat, Task, 'TMat2> -> Flow<'TIn, 'TOut, 'TMat2> when 'TIn : 'TOut
Parameters
- flow
- Type: Akka.Streams.DslFlowTIn, TOut, TMat
TBD - materializerFunction
- Type: SystemFuncTMat, Task, TMat2
TBD
Type Parameters
- TIn
- TBD
- TOut
- TBD
- TMat
- TBD
- TMat2
- TBD
Return Value
Type:
FlowTIn,
TOut,
TMat2TBD
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