ReactiveUI.Primitives.Advanced.AggregateWitness<T, TResult, TAggregator>
public sealed class AggregateWitness<T, TResult, TAggregator> : IObserver<T>, IDisposable where TAggregator : struct, IAggregator<T, TResult, TAggregator>
Single-source sink that folds every observed value through an immutable value-type TAggregator
and emits the aggregate result once the source completes. The accumulator is advanced functionally through a
constrained (devirtualized, allocation-free) call, so each concrete aggregate operator shares this one
implementation without a base class or per-value indirection.
Single-source sink that folds every observed value through an immutable value-type TAggregator
and emits the aggregate result once the source completes. The accumulator is advanced functionally through a
constrained (devirtualized, allocation-free) call, so each concrete aggregate operator shares this one
implementation without a base class or per-value indirection.
Assigns the upstream subscription, disposing it if one is already held.