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

ReactiveUI.Primitives.Advanced.CurrentValueWitness<T>

public sealed class CurrentValueWitness<T> : IDisposable
Delivers a value that is read again each time it changes to one observer, one delivery at a time and without a lock.
public bool IsTerminated { get; }

Gets a value indicating whether the terminal notification has been delivered or the witness was disposed.

public CurrentValueWitness(IObserver<T> observer, ICurrentValueReader<T> reader)

Initializes a new instance of the CurrentValueWitness<T> class that delivers every read.

public CurrentValueWitness(IObserver<T> observer, ICurrentValueReader<T> reader, IEqualityComparer<T> comparer)

Initializes a new instance of the CurrentValueWitness<T> class.

public void Changed()

Records a change and delivers the current value.

public void Complete()

Delivers completion as the terminal notification, after a pending change.

public void Dispose()

Stops delivery; nothing further is delivered.

public void Fault(Exception error)

Delivers an error as the terminal notification, after a pending change.

public void Start()

Reads and delivers the initial value, then accepts changes.