ReactiveUI.Primitives.Disposables namespace¶
Part of the ReactiveUI.Disposables package.
| Type | Kind | Summary |
|---|---|---|
| ActionDisposable | class | An IDisposable that runs the supplied Action exactly once on [Dispose](# Replaces new ActionDisposable(Action). |
| AssignmentSlot | class | Primitives alias for a single-assignment disposable slot. |
| BooleanDisposable | class | BooleanDisposable. |
| CancellationDisposable | class | CancellationDisposable. |
| DisposableBag | class | A 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. |
| EmptyDisposable | class | A no-op IDisposable singleton used in place of EmptyDisposable.Instance. |
| IsDisposed | interface | Is Disposed. |
| MultipleDisposable | class | A disposable pocket that contains a set of disposables and disposes them together. |
| MutableDisposable | class | A 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. |
| OnceDisposable | class | A 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. |
| class | Primitives alias for a group of disposables that are disposed together. | |
| Scope | class | Scope. |
| SingleDisposable | class | Single-assignment disposable slot. |
| SingleReplaceableDisposable | class | SingleReplaceableDisposable. |
| Slot | class | Primitives alias for a replaceable disposable slot. |
| SwapDisposable | class | A 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. |