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

ReactiveUI.Primitives.Advanced.Witness

public static class Witness
Factory methods for allocation-conscious observers in the ReactiveUI.Primitives vocabulary.
namespace ReactiveUI.Primitives.Advanced { public static class Witness { public static IObserver<T> Create<[Nullable(2)] T>(Action<T> onNext); public static IObserver<T> Create<[Nullable(2)] T>(Action<T> onNext, Action<Exception> onError); public static IObserver<T> Create<[Nullable(2)] T>(Action<T> onNext, Action onCompleted); public static IObserver<T> Create<[Nullable(2)] T>(Action<T> onNext, Action<Exception> onError, Action onCompleted); public static IObserver<T> Safe<[Nullable(2)] T>(IObserver<T> observer); public static IObserver<T> Safe<[Nullable(2)] T>(IObserver<T> observer, IDisposable cancel); public static void RethrowIfNotNull(Exception exception); public static IDisposable Subscribe<[Nullable(2)] T>(IObservable<T> source); public static IDisposable Subscribe<[Nullable(2)] T>(IObservable<T> source, Action<T> onNext); public static IDisposable Subscribe<[Nullable(2)] T>(IObservable<T> source, Action<T> onNext, Action<Exception> onError); public static IDisposable Subscribe<[Nullable(2)] T>(IObservable<T> source, Action<T> onNext, Action onCompleted); public static IDisposable Subscribe<[Nullable(2)] T>(IObservable<T> source, Action<T> onNext, Action<Exception> onError, Action onCompleted); } }