Click or drag to resize
Akka.NETSubFlowOperationsAggregateAsyncTIn, TOut, TMat, TClosed Method
Similar to AggregateTOut1, TOut2, TMat, TClosed(SubFlowTOut1, TMat, TClosed, TOut2, FuncTOut2, TOut1, TOut2) but with an asynchronous function. Applies the given function towards its current and next value, yielding the next current value. If the function fold returns a failure and the supervision decision is Restart current value starts at zero again the stream will continue.

Emits when upstream completes

Backpressures when downstream backpressures

Completes when upstream completes

Cancels when downstream cancels

Namespace:  Akka.Streams.Dsl
Assembly:  Akka.Streams (in Akka.Streams.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public static SubFlow<TOut, TMat, TClosed> AggregateAsync<TIn, TOut, TMat, TClosed>(
	this SubFlow<TIn, TMat, TClosed> flow,
	TOut zero,
	Func<TOut, TIn, Task<TOut>> fold
)

Parameters

flow
Type: Akka.Streams.DslSubFlowTIn, TMat, TClosed
TBD
zero
Type: TOut
TBD
fold
Type: SystemFuncTOut, TIn, TaskTOut
TBD

Type Parameters

TIn
TBD
TOut
TBD
TMat
TBD
TClosed
TBD

Return Value

Type: SubFlowTOut, TMat, TClosed
TBD

Usage Note

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