Click or drag to resize
Akka.NETSourceOperationsOrElseT, TMat Method
Provides a secondary source that will be consumed if this stream completes without any elements passing by. As soon as the first element comes through this stream, the alternative will be cancelled. Note that this Flow will be materialized together with the SourceTOut, TMat and just kept from producing elements by asserting back-pressure until its time comes or it gets cancelled. On errors the stage is failed regardless of source of the error. '''Emits when''' element is available from first stream or first stream closed without emitting any elements and an element is available from the second stream '''Backpressures when''' downstream backpressures '''Completes when''' the primary stream completes after emitting at least one element, when the primary stream completes without emitting and the secondary stream already has completed or when the secondary stream completes '''Cancels when''' downstream cancels and additionally the alternative is cancelled as soon as an element passes by from this stream.

Namespace:  Akka.Streams.Dsl
Assembly:  Akka.Streams (in Akka.Streams.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public static Source<T, TMat> OrElse<T, TMat>(
	this Source<T, TMat> flow,
	IGraph<SourceShape<T>, TMat> secondary
)

Parameters

flow
Type: Akka.Streams.DslSourceT, TMat
TBD
secondary
Type: Akka.StreamsIGraphSourceShapeT, TMat
TBD

Type Parameters

T
TBD
TMat
TBD

Return Value

Type: SourceT, TMat
TBD

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SourceT, 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