| SubFlowOperationsRecoverTOut, TMat, TClosed Method |
Recover allows to send last element on failure and gracefully complete the stream
Since the underlying failure signal onError arrives out-of-band, it might jump over existing elements.
This stage can recover the failure signal, but not the skipped elements, which will be dropped.
Emits when element is available from the upstream or upstream is failed and partialFunc returns an element
Backpressures when downstream backpressures
Completes when upstream completes or upstream failed with exception pf can handle
Cancels when downstream cancels
Namespace:
Akka.Streams.Dsl
Assembly:
Akka.Streams (in Akka.Streams.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax public static SubFlow<Option<TOut>, TMat, TClosed> Recover<TOut, TMat, TClosed>(
this SubFlow<TOut, TMat, TClosed> flow,
Func<Exception, Option<TOut>> partialFunc
)
[<ExtensionAttribute>]
static member Recover :
flow : SubFlow<'TOut, 'TMat, 'TClosed> *
partialFunc : Func<Exception, Option<'TOut>> -> SubFlow<Option<'TOut>, 'TMat, 'TClosed>
Parameters
- flow
- Type: Akka.Streams.DslSubFlowTOut, TMat, TClosed
TBD - partialFunc
- Type: SystemFuncException, OptionTOut
TBD
Type Parameters
- TOut
- TBD
- TMat
- TBD
- TClosed
- TBD
Return Value
Type:
SubFlowOptionTOut,
TMat,
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