| FlowOperationsOrElseT, 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.129 (1.2.3.129)
Syntax public static Flow<T, T, TMat> OrElse<T, TMat>(
this Flow<T, T, TMat> flow,
IGraph<SourceShape<T>, TMat> secondary
)
[<ExtensionAttribute>]
static member OrElse :
flow : Flow<'T, 'T, 'TMat> *
secondary : IGraph<SourceShape<'T>, 'TMat> -> Flow<'T, 'T, 'TMat>
Parameters
- flow
- Type: Akka.Streams.DslFlowT, T, TMat
TBD - secondary
- Type: Akka.StreamsIGraphSourceShapeT, TMat
TBD
Type Parameters
- T
- TBD
- TMat
- TBD
Return Value
Type:
FlowT,
T,
TMatTBD
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
FlowT,
T,
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