ReactiveUI.Primitives.Extensions.CurrentValueSubject<T>
Thread-safe subject that holds the most-recently-emitted value, replays it to new subscribers,
and broadcasts subsequent emissions. Per-emission hot path:
Lock taken only to read the current observer state and update the cached value.Single-observer state lives in a dedicated field — no array allocated for the common case.Multi-observer state uses a copy-on-write IObserver{T}[] snapshot iterated outside the lock.
Gets the most recently emitted value.
Initializes a new instance of the CurrentValueSubject<T> class with the supplied current value.
Returns an IObservable<T> view that hides the IObserver<T> side.