| FlowOperationsOrElseMaterializedT, TMat, TMat2, TMat3 Method |
Provides a secondary source that will be consumed if this source completes without any
elements passing by. As soon as the first element comes through this stream, the alternative
will be cancelled.
It is recommended to use the internally optimized
LeftTLeft, TRight(TLeft, TRight) and
RightTLeft, TRight(TLeft, TRight) combiners
where appropriate instead of manually writing functions that pass through one of the values.
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, TMat3> OrElseMaterialized<T, TMat, TMat2, TMat3>(
this Flow<T, T, TMat> flow,
IGraph<SourceShape<T>, TMat2> secondary,
Func<TMat, TMat2, TMat3> materializedFunction
)
[<ExtensionAttribute>]
static member OrElseMaterialized :
flow : Flow<'T, 'T, 'TMat> *
secondary : IGraph<SourceShape<'T>, 'TMat2> *
materializedFunction : Func<'TMat, 'TMat2, 'TMat3> -> Flow<'T, 'T, 'TMat3>
Parameters
- flow
- Type: Akka.Streams.DslFlowT, T, TMat
TBD - secondary
- Type: Akka.StreamsIGraphSourceShapeT, TMat2
TBD - materializedFunction
- Type: SystemFuncTMat, TMat2, TMat3
TBD
Type Parameters
- T
- TBD
- TMat
- TBD
- TMat2
- TBD
- TMat3
- TBD
Return Value
Type:
FlowT,
T,
TMat3TBD
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