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

ReactiveUI.Primitives.Advanced.SinkSubscription

public static class 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.
public static void Dispose(ref IDisposable subscription)

Releases the upstream subscription exactly once, latching a sentinel so later assignments self-dispose.

public static void Set(ref IDisposable subscription, IDisposable value)

Assigns the upstream subscription, disposing it immediately if the sink already holds one or has been disposed.