Class OrElse<T>
Takes two streams and passes the first through, the secondary stream is only passed through if the primary stream completes without passing any elements through. When the first element is passed through from the primary the secondary is cancelled. Both incoming streams are materialized when the stage is materialized.
On errors the stage is failed regardless of source of the error.
'''Emits when''' element is available from primary stream or the primary stream closed without emitting any elements and an element is available from the secondary 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
Implements
Inherited Members
Namespace: Akka.Streams.Dsl
Assembly: Akka.Streams.dll
Syntax
public sealed class OrElse<T> : GraphStage<UniformFanInShape<T, T>>, IGraphStageWithMaterializedValue<UniformFanInShape<T, T>, NotUsed>, IGraph<UniformFanInShape<T, T>, NotUsed>, IGraph<UniformFanInShape<T, T>>
Type Parameters
Name | Description |
---|---|
T | TBD |
Constructors
| Improve this Doc View SourceOrElse()
Initializes a new instance of the OrElse<T> class.
Declaration
public OrElse()
Properties
| Improve this Doc View SourceInitialAttributes
TBD
Declaration
protected override Attributes InitialAttributes { get; }
Property Value
Type | Description |
---|---|
Attributes |
Overrides
Out
TBD
Declaration
public Outlet<T> Out { get; }
Property Value
Type | Description |
---|---|
Outlet<T> |
Primary
TBD
Declaration
public Inlet<T> Primary { get; }
Property Value
Type | Description |
---|---|
Inlet<T> |
Secondary
TBD
Declaration
public Inlet<T> Secondary { get; }
Property Value
Type | Description |
---|---|
Inlet<T> |
Shape
TBD
Declaration
public override UniformFanInShape<T, T> Shape { get; }
Property Value
Type | Description |
---|---|
UniformFanInShape<T, T> |
Overrides
Methods
| Improve this Doc View SourceCreateLogic(Attributes)
TBD
Declaration
protected override GraphStageLogic CreateLogic(Attributes inheritedAttributes)
Parameters
Type | Name | Description |
---|---|---|
Attributes | inheritedAttributes | TBD |
Returns
Type | Description |
---|---|
GraphStageLogic | TBD |
Overrides
ToString()
TBD
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | TBD |