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

ReactiveUI.Primitives.Advanced.SubscriptionSlots

public static class SubscriptionSlots
Holds one subscription per slot and disposes assignments made after a slot is released.
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 when the slot is occupied or released.

public static void Release(ref IDisposable slot)

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