| SourceOperationsAggregateTOut1, TOut2, TMat Method |
Similar to
ScanTOut1, TOut2, TMat(SourceTOut1, TMat, TOut2, FuncTOut2, TOut1, TOut2) but only emits its result when the upstream completes,
after which it also completes. Applies the given function
fold towards its current and next value,
yielding the next current value.
If the function
fold throws an exception 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 Source<TOut2, TMat> Aggregate<TOut1, TOut2, TMat>(
this Source<TOut1, TMat> flow,
TOut2 zero,
Func<TOut2, TOut1, TOut2> fold
)
[<ExtensionAttribute>]
static member Aggregate :
flow : Source<'TOut1, 'TMat> *
zero : 'TOut2 *
fold : Func<'TOut2, 'TOut1, 'TOut2> -> Source<'TOut2, 'TMat>
Parameters
- flow
- Type: Akka.Streams.DslSourceTOut1, TMat
TBD - zero
- Type: TOut2
TBD - fold
- Type: SystemFuncTOut2, TOut1, TOut2
TBD
Type Parameters
- TOut1
- TBD
- TOut2
- TBD
- TMat
- TBD
Return Value
Type:
SourceTOut2,
TMatTBD
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
SourceTOut1,
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