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

ReactiveUI.Primitives.Advanced.StatefulWitness<T, TState>

public sealed class StatefulWitness<T, TState> : IObserver<T>
Observer that forwards notifications to stateful delegates.
namespace ReactiveUI.Primitives.Advanced { public sealed class StatefulWitness<[System.Runtime.CompilerServices.Nullable(2)] T, [System.Runtime.CompilerServices.Nullable(2)] TState> : IObserver<T> { public StatefulWitness(TState state, Action<T, TState> onNext, Action<Exception, TState> onError, Action<Result, TState> onCompleted); public void OnCompleted(); public void OnError(Exception error); public void OnNext(T value); } }