Click or drag to resize
Akka.NETFlowOperationsWatchTerminationTIn, 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.42 (1.2.3.42)
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

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, TMat2
TBD

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