ReactiveUI.Primitives.Extensions.ObserverArrayHelpers
Helpers for broadcasting to, and removing from, swap-on-write IObserver<T> arrays.
Fans value out to every observer in observers in order; an empty array emits nothing.
Emits every element of source to observer in order through
OnNext, indexing arrays, List<T> and the list interfaces directly
and enumerating anything else.
Pushes multiple events to observer in order.
public static IObserver<T>[] RemoveOrNull<T>(IObserver<T>[] current, IObserver<T> observer, IObserver<T>[] empty)
Copies current without observer, reporting absence so a caller can skip the swap entirely.