Click or drag to resize
Akka.NETSourceMaybeT Method
Create a SourceTOut, TMat which materializes a TaskCompletionSourceTResult which controls what element will be emitted by the Source. If the materialized promise is completed with a Some, that value will be produced downstream, followed by completion. If the materialized promise is completed with a None, no value will be produced downstream and completion will be signaled immediately. If the materialized promise is completed with a failure, then the returned source will terminate with that error. If the downstream of this source cancels before the promise has been completed, then the promise will be completed with None.

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, TaskCompletionSource<T>> Maybe<T>()

Type Parameters

T
TBD

Return Value

Type: SourceT, TaskCompletionSourceT
TBD
See Also