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

ReactiveUI.Primitives.Advanced.SubscriptionSlots

public static class SubscriptionSlots
Helpers for the interlocked single-assignment subscription slots shared by the catch-style sinks (RecoverSignal, ResumeSignal): a slot holds at most one live subscription and, once the sink is disposed, swaps to a sentinel so a late assignment is disposed instead of stored.
public static readonly IDisposable Disposed

The sentinel stored in a slot once it has been released.

public static void Assign(ref IDisposable slot, IDisposable subscription)

Stores a subscription into an empty slot, disposing it instead if the slot is already released.

public static void Release(ref IDisposable slot)

Exchanges a slot for the disposed sentinel and disposes any live subscription it held.