<PackageReference Include="ReactiveUI.Primitives" Version="10.0.0" />

ReactiveUI.Primitives.Advanced.SliceTimeCountWitness<T>

public sealed class SliceTimeCountWitness<T> : IObserver<T>, IDisposable
Sink that hands out a window signal that ends when it holds a number of values or a duration has elapsed, whichever comes first.
public SharedSubscription Subscription { get; }

Gets the subscription handed to the outer subscriber; the source stays subscribed while any window is.

public SliceTimeCountWitness(IObserver<IObservable<T>> observer, TimeSpan timeSpan, int count, ISequencer sequencer)

Initializes a new instance of the SliceTimeCountWitness<T> class.

public void Dispose()

public void OnCompleted()

public void OnError(Exception error)

public void OnNext(T value)

public void SetSubscription(IDisposable subscription)

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

public void Start()

Opens the first window and starts its timer before the source is subscribed.