Click or drag to resize
Akka.NETSinkSumTIn Method
A SinkTIn, TMat that will invoke the given reduce for every received element, giving it its previous output (from the second element) and the element as input. The returned TaskTResult will be completed with value of the final function evaluation when the input stream ends, or completed with `Failure` if there is a failure signaled in the stream. If the stream is empty (i.e. completes before signaling any elements), the sum stage will fail its downstream with a NoSuchElementException, which is semantically in-line with that standard library collections do in such situations.

Namespace:  Akka.Streams.Dsl
Assembly:  Akka.Streams (in Akka.Streams.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
public static Sink<TIn, Task<TIn>> Sum<TIn>(
	Func<TIn, TIn, TIn> reduce
)

Parameters

reduce
Type: SystemFuncTIn, TIn, TIn
TBD

Type Parameters

TIn
TBD

Return Value

Type: SinkTIn, TaskTIn
TBD
See Also