Skip to content

ReactiveUI.Primitives.Disposables namespace

Part of the ReactiveUI.Disposables package.

TypeKindSummary
ActionDisposableclassAn IDisposable that runs the supplied Action exactly once on [Dispose](# Replaces new ActionDisposable(Action).
AssignmentSlotclassPrimitives alias for a single-assignment disposable slot.
BooleanDisposableclassBooleanDisposable.
CancellationDisposableclassCancellationDisposable.
DisposableBagclassA small composite-disposable replacement specialised for the common 2-slot "subscription + sink" pair found throughout this codebase. Avoids the List backing field of System.Reactive.Disposables.CompositeDisposable.
EmptyDisposableclassA no-op IDisposable singleton used in place of EmptyDisposable.Instance.
IsDisposedinterfaceIs Disposed.
MultipleDisposableclassA disposable pocket that contains a set of disposables and disposes them together.
MutableDisposableclassA disposable holder whose inner disposable can be re-assigned. The previous inner disposable is NOT disposed when replaced (in contrast to [SwapDisposable](# Once this object is disposed, any subsequently assigned inner disposable is disposed immediately. Replaces MultipleAssignmentDisposable.
OnceDisposableclassA disposable holder whose inner disposable can be set exactly once. Replaces SingleAssignmentDisposable. Subsequent assignments throw InvalidOperationException; if the holder has been disposed before assignment, the supplied disposable is disposed immediately and no exception is thrown.
PocketclassPrimitives alias for a group of disposables that are disposed together.
ScopeclassScope.
SingleDisposableclassSingle-assignment disposable slot.
SingleReplaceableDisposableclassSingleReplaceableDisposable.
SlotclassPrimitives alias for a replaceable disposable slot.
SwapDisposableclassA disposable holder whose inner disposable can be re-assigned. The previous inner disposable is disposed when replaced (in contrast to [MutableDisposable](# Once this object is disposed, any subsequently assigned inner disposable is disposed immediately. Replaces SerialDisposable.