ReactiveUI.Primitives.Extensions.ObserverArrayHelpers
Pure-plumbing helpers for swap-on-write IObserver<T> arrays. Centralizes the
empty-array short-circuit on broadcast and the not-present short-circuit on remove so the
operator hot paths stay branchless on the steady state. Every branch is a pure function
over its inputs and is directly RxVoid-testable through this class.
namespace ReactiveUI.Primitives.Extensions
{
public static class ObserverArrayHelpers
{
public static void Broadcast<[Nullable(2)] T>(IObserver<T>[] observers, T value);
public static IObserver<T>[] RemoveOrNull<[Nullable(2)] T>(IObserver<T>[] current, IObserver<T> observer, IObserver<T>[] empty);
}
}