Click or drag to resize
Akka.NETFlowOperationsRecoverWithTIn, TOut, TMat Method

Note: This API is now obsolete.

RecoverWith allows to switch to alternative Source on flow failure. It will stay in effect after a failure has been recovered so that each time there is a failure it is fed into the partialFunc and a new Source may be materialized.

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 element is available from alternative Source

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
[ObsoleteAttribute("Use RecoverWithRetries instead. [1.1.2]")]
public static Flow<TIn, TOut, TMat> RecoverWith<TIn, TOut, TMat>(
	this Flow<TIn, TOut, TMat> flow,
	Func<Exception, IGraph<SourceShape<TOut>, TMat>> partialFunc
)

Parameters

flow
Type: Akka.Streams.DslFlowTIn, TOut, TMat
TBD
partialFunc
Type: SystemFuncException, IGraphSourceShapeTOut, TMat
TBD

Type Parameters

TIn
TBD
TOut
TBD
TMat
TBD

Return Value

Type: FlowTIn, TOut, TMat
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