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.
namespace ReactiveUI.Primitives.Advanced
{
public sealed class AggregateWitness<[System.Runtime.CompilerServices.Nullable(2)] T, [System.Runtime.CompilerServices.Nullable(2)] TResult, TAggregator> : IObserver<T>, IDisposable where TAggregator : struct, IAggregator<T, TResult, TAggregator>
{
public AggregateWitness(IObserver<TResult> observer, TAggregator aggregator);
public void OnNext(T value);
public void OnError(Exception error);
public void OnCompleted();
public void SetSubscription(IDisposable subscription);
public void Dispose();
}
}