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

ReactiveUI.Primitives.Advanced.SliceClosingWitness<T, TClosing>

public sealed class SliceClosingWitness<T, TClosing> : IObserver<T>, IDisposable
Sink that hands out a window signal that ends when its own closing signal emits or completes.

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

public SliceClosingWitness(IObserver<IObservable<T>> observer, Func<IObservable<TClosing>> closingSelector)

Initializes a new instance of the SliceClosingWitness<T, U> 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 watching its closing signal before the source is subscribed.