ReactiveUI.Primitives.Disposables
Namespace with 17 public types
Classes
ActionDisposable
An that runs the supplied on the first call and does nothing on later calls.
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 a when disposed; the source itself is left undisposed.
DisposableBag
A composite disposable that holds its first two entries in inline fields and spills further entries into a heap-allocated array.
EmptyDisposable
A no-op whose shared instance stands in for the absence of a resource.
MultipleDisposable
A group of disposables that are disposed together.
MutableDisposable
Holds a replaceable disposable without disposing the displaced value.
OnceDisposable
Holds a disposable that can be assigned once.
Pocket
Primitives alias for a group of disposables that are disposed together.
SingleDisposable
A disposable slot that accepts one assignment: a second assignment throws, and a value assigned after disposal is disposed immediately.
SingleReplaceableDisposable
A disposable slot whose inner disposable can be replaced, disposing the previous one.
Slot
Primitives alias for a replaceable disposable slot.
SwapDisposable
Holds a replaceable disposable and disposes each displaced value.
Structures
DisposableSet
A group of disposables that are disposed together, embedded as a mutable field by the type that owns them.
Static Classes
Scope
Provides factory helpers for creating disposables.
Interfaces
IsDisposed
An that reports whether it has been disposed.