ReactiveUI.Primitives.Advanced.GroupByUntilWitness<TSource, TKey, TElement, TDuration>
public sealed class GroupByUntilWitness<TSource, TKey, TElement, TDuration> : IObserver<TSource>, IDisposable
Sink that routes each source value to the group of its key and ends a group when its duration signal emits or completes.
Gets the subscription handed to the outer subscriber; the source stays subscribed while any group is.
public GroupByUntilWitness(IObserver<GroupedSignal<TKey, TElement>> observer, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, Func<GroupedSignal<TKey, TElement>, IObservable<TDuration>> durationSelector, IEqualityComparer<TKey> comparer, int capacity)
Initializes a new instance of the GroupByUntilWitness<T, U, V, W> class.
Assigns the upstream subscription, disposing the incoming one when this sink has been disposed.