Click or drag to resize
Akka.NETFlowOperations.OrElseMaterialized<T, 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 Left< TLeft, TRight> (TLeft, TRight) and Right< TLeft, 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
)

Parameters

flow
Type: Akka.Streams.Dsl.Flow<T, T, TMat>
TBD
secondary
Type: Akka.Streams.IGraph<SourceShape<T>, TMat2>
TBD
materializedFunction
Type: System.Func<TMat, TMat2, TMat3>
TBD

Type Parameters

T
TBD
TMat
TBD
TMat2
TBD
TMat3
TBD

Return Value

Type: Flow<T, T, TMat3>
TBD

Usage Note

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