<PackageReference Include="ReactiveUI.Primitives.Core" Version="8.2.0" />
ReactiveUI.Primitives.Advanced.EmptyWitness<T>
Delegate-backed observer that defaults missing handlers to no-op behavior.
namespace ReactiveUI.
Primitives.
Advanced
{
public sealed class EmptyWitness<[
System.
Runtime.
CompilerServices.
Nullable(
2)]
T> :
IObserver<
T>
{
public static readonly EmptyWitness<
T>
Instance;
public EmptyWitness(
Action<
T>
onNext);
public EmptyWitness(
Action<
T>
onNext,
Action<
Exception>
onError);
public EmptyWitness(
Action<
T>
onNext,
Action onCompleted);
public EmptyWitness(
Action<
T>
onNext,
Action<
Exception>
onError,
Action onCompleted);
public void OnCompleted();
public void OnError(
Exception error);
public void OnNext(
T value);
}
}