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

ReactiveUI.Primitives.Advanced.CollectArrayWitness<T>

public sealed class CollectArrayWitness<T> : IObserver<T>, IDisposable
Sink that buffers values and emits them as an array on completion.
public CollectArrayWitness(IObserver<T[]> observer)

Initializes a new instance of the CollectArrayWitness<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 upstream subscription, disposing the incoming one when this sink holds a subscription or has been disposed.