ReactiveUI.Primitives.Signals.DelegateWitness<T>
A lightweight IObserver<T> that forwards each notification to the supplied delegates.
Use it to subscribe to an IObservable<T> without allocating a bespoke observer class.
The onError and onCompleted delegates are optional; when omitted
the corresponding terminal notification is ignored.
public DelegateWitness(Action<T> onNext, Action<Exception> onError = null, Action onCompleted = null)
A lightweight IObserver<T> that forwards each notification to the supplied delegates.
Use it to subscribe to an IObservable<T> without allocating a bespoke observer class.
The onError and onCompleted delegates are optional; when omitted
the corresponding terminal notification is ignored.