 | Sink.LastOrDefault<TIn> Method |
A
Sink< TIn, TMat> that materializes into a
Task< TResult> of the last value received.
If the stream completes before signaling at least a single element, the Task will be return a default value.
If the stream signals an error errors before signaling at least a single element, the Task will be failed with the streams exception.
Namespace:
Akka.Streams.Dsl
Assembly:
Akka.Streams (in Akka.Streams.dll) Version: 1.2.3.129 (1.2.3.129)
Syntaxpublic static Sink<TIn, Task<TIn>> LastOrDefault<TIn>()
static member LastOrDefault : unit -> Sink<'TIn, Task<'TIn>>
Type Parameters
- TIn
- TBD
Return Value
Type:
Sink<TIn,
Task<TIn>>TBD
See Also