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

ReactiveUI.Primitives.Advanced.AnyWitness<T>

public sealed class AnyWitness<T> : IObserver<T>, IDisposable
Observer for detecting whether any value is present.
public AnyWitness(IObserver<bool> observer)

Initializes a new instance of the AnyWitness<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.