ReactiveUI.Primitives.Disposables
Namespace with 16 public types
Classes
ActionDisposable
An that runs the supplied exactly once on . Replaces new ActionDisposable(Action).
AssignmentSlot
Primitives alias for a single-assignment disposable slot.
BooleanDisposable
A disposable that exposes its disposed state as a boolean flag.
CancellationDisposable
A disposable that cancels an owned when disposed.
DisposableBag
A small composite-disposable replacement specialised for the common 2-slot
"subscription + sink" pair found throughout this codebase. Avoids the
backing field of
System.Reactive.Disposables.CompositeDisposable.
EmptyDisposable
A no-op singleton used in place of EmptyDisposable.Instance.
MultipleDisposable
A disposable pocket that contains a set of disposables and disposes them together.
MutableDisposable
A disposable holder whose inner disposable can be re-assigned. The previous inner
disposable is NOT disposed when replaced (in contrast to ).
Once this object is disposed, any subsequently assigned inner disposable is disposed
immediately. Replaces MultipleAssignmentDisposable.
OnceDisposable
A disposable holder whose inner disposable can be set exactly once.
Replaces SingleAssignmentDisposable. Subsequent assignments throw
; if the holder has been disposed before
assignment, the supplied disposable is disposed immediately and no exception is thrown.
Pocket
Primitives alias for a group of disposables that are disposed together.
SingleDisposable
Single-assignment disposable slot.
SingleReplaceableDisposable
A disposable slot whose inner disposable can be replaced, disposing the previous one.
Slot
Primitives alias for a replaceable disposable slot.
SwapDisposable
A disposable holder whose inner disposable can be re-assigned. The previous inner
disposable is disposed when replaced (in contrast to ).
Once this object is disposed, any subsequently assigned inner disposable is disposed
immediately. Replaces SerialDisposable.
Static Classes
Scope
Provides factory helpers for creating disposables.
Interfaces
IsDisposed
Is Disposed.