| SubFlowOperationsWatchTerminationTOut, TMat, TMat2, TClosed 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.42 (1.2.3.42)
Syntax public static SubFlow<TOut, TMat2, TClosed> WatchTermination<TOut, TMat, TMat2, TClosed>(
this SubFlow<TOut, TMat, TClosed> flow,
Func<TMat, Task, TMat2> materializerFunction
)
[<ExtensionAttribute>]
static member WatchTermination :
flow : SubFlow<'TOut, 'TMat, 'TClosed> *
materializerFunction : Func<'TMat, Task, 'TMat2> -> SubFlow<'TOut, 'TMat2, 'TClosed>
Parameters
- flow
- Type: Akka.Streams.DslSubFlowTOut, TMat, TClosed
TBD - materializerFunction
- Type: SystemFuncTMat, Task, TMat2
TBD
Type Parameters
- TOut
- TBD
- TMat
- TBD
- TMat2
- TBD
- TClosed
- TBD
Return Value
Type:
SubFlowTOut,
TMat2,
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).
See Also