| SourceOperationsConflateWithSeedTOut, TMat, TSeed Method |
Allows a faster upstream to progress independently of a slower subscriber by conflating elements into a summary
until the subscriber is ready to accept them. For example a conflate step might average incoming numbers if the
upstream publisher is faster.
This version of conflate allows to derive a seed from the first element and change the aggregated type to
be different than the input type. See
ConflateTOut, TMat(SourceTOut, TMat, FuncTOut, TOut, TOut) for a simpler version that does not change types.
This element only rolls up elements if the upstream is faster, but if the downstream is faster it will not
duplicate elements.
Emits when downstream stops backpressuring and there is a conflated element available
Backpressures when never
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<TSeed, TMat> ConflateWithSeed<TOut, TMat, TSeed>(
this Source<TOut, TMat> flow,
Func<TOut, TSeed> seed,
Func<TSeed, TOut, TSeed> aggregate
)
[<ExtensionAttribute>]
static member ConflateWithSeed :
flow : Source<'TOut, 'TMat> *
seed : Func<'TOut, 'TSeed> *
aggregate : Func<'TSeed, 'TOut, 'TSeed> -> Source<'TSeed, 'TMat>
Parameters
- flow
- Type: Akka.Streams.DslSourceTOut, TMat
TBD - seed
- Type: SystemFuncTOut, TSeed
Provides the first state for a conflated value using the first unconsumed element as a start - aggregate
- Type: SystemFuncTSeed, TOut, TSeed
Takes the currently aggregated value and the current pending element to produce a new aggregate
Type Parameters
- TOut
- TBD
- TMat
- TBD
- TSeed
- TBD
Return Value
Type:
SourceTSeed,
TMatTBD
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
SourceTOut,
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