Skip to content

SubscriptionSlots class

Defined in

Namespace: ReactiveUI.Primitives.Advanced Assembly: ReactiveUI.Primitives.Core.dll Full name: ReactiveUI.Primitives.Advanced.SubscriptionSlots Modifiers: public static

Summary

View source

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.

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Fields

NameSummary
static DisposedThe sentinel stored in a slot once it has been released.

Methods

NameSummary
static ReleaseExchanges a slot for the disposed sentinel and disposes any live subscription it held.
static AssignStores a subscription into an empty slot, disposing it instead if the slot is already released.
Inherited members