<PackageReference Include="ReactiveUI.Primitives.Core" Version="8.1.0" />

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.

public void Dispose()

public void OnCompleted()

public void OnError(Exception error)

public void OnNext(TSource value)

public void SetSubscription(IDisposable subscription)

Assigns the upstream subscription, disposing the incoming one when this sink has been disposed.