ReactiveUI.Primitives.Advanced.SinkSubscription
Shared single-upstream-subscription management for sink observers. Operating on a caller-owned
IDisposable field through a ref parameter lets each sink implement
IObserver<T> directly — with no shared base class, and therefore no virtual-dispatch
overhead on the hot notification path — while still sharing the assign-once / dispose-once teardown.
namespace ReactiveUI.Primitives.Advanced
{
public static class SinkSubscription
{
public static void Set(ref IDisposable subscription, IDisposable value);
public static void Dispose(ref IDisposable subscription);
}
}