Nito.Disposables
Namespace with 7 public types
Classes
AnonymousDisposable
A disposable that executes a delegate when disposed.
CollectionDisposable
Disposes a collection of disposables.
NoopDisposable
A singleton disposable that does nothing when disposed.
ReferenceCountedDisposable
A reference-counted wrapper for a disposable. The wrapper itself is the first reference.
Once all references are disposed, the underlying disposable is disposed. All future reference disposals are no-ops.
WrappedDisposable
A wrapper around an existing disposable that ensures the existing disposable is only disposed once.
Abstract Classes
SingleDisposable`1
A base class for disposables that need exactly-once semantics in a thread-safe way. All disposals of this instance block until the disposal is complete.
SingleNonblockingDisposable`1
A base class for disposables that need exactly-once semantics in a thread-safe way.