| SourceOperationsWatchTerminationTOut, 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 Source<TOut, TMat2> WatchTermination<TOut, TMat, TMat2>(
this Source<TOut, TMat> flow,
Func<TMat, Task, TMat2> materializerFunction
)
[<ExtensionAttribute>]
static member WatchTermination :
flow : Source<'TOut, 'TMat> *
materializerFunction : Func<'TMat, Task, 'TMat2> -> Source<'TOut, 'TMat2>
Parameters
- flow
- Type: Akka.Streams.DslSourceTOut, TMat
TBD - materializerFunction
- Type: SystemFuncTMat, Task, TMat2
TBD
Type Parameters
- TOut
- TBD
- TMat
- TBD
- TMat2
- TBD
Return Value
Type:
SourceTOut,
TMat2TBD
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
SourceTOut,
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