<PackageReference Include="ReactiveUI.Primitives.Core" Version="10.2.0" />
ReactiveUI.Primitives.Advanced.NoopWitness<T>
No-op observer used by SubscribeAndComplete to absorb signals without allocating a delegate trio.
namespace ReactiveUI.
Primitives.
Advanced
{
public sealed class NoopWitness<[
System.
Runtime.
CompilerServices.
Nullable(
2)]
T> :
IObserver<
T>
{
public static readonly NoopWitness<
T>
Instance;
public static void SubscribeAndComplete(
IObservable<
T>
source);
public void OnNext(
T value);
public void OnError(
Exception error);
public void OnCompleted();
}
}