 | FlowOperations.WatchTermination<TIn, TOut, TMat, TMat2> Method |
Materializes to
Task< TResult> 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
Left< TLeft, TRight> (TLeft, TRight) and
Right< TLeft, 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)
Syntaxpublic 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.Dsl.Flow<TIn, TOut, TMat>
TBD - materializerFunction
- Type: System.Func<TMat, Task, TMat2>
TBD
Type Parameters
- TIn
- TBD
- TOut
- TBD
- TMat
- TBD
- TMat2
- TBD
Return Value
Type:
Flow<TIn,
TOut,
TMat2>TBD
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Flow<TIn,
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