<PackageReference Include="Nito.Disposables" Version="2.3.0-pre01" />

Nito.Disposables

Namespace with 16 public types

Classes

 AnonymousAsyncDisposable Equivalent to .
 AnonymousDisposable Equivalent to .
 AsyncDisposable A disposable that executes a delegate when disposed.
 CollectionAsyncDisposable Disposes a collection of disposables.
 CollectionDisposable Disposes a collection of disposables.
 Disposable A disposable that executes a delegate when disposed.
 NoopDisposable A singleton disposable that does nothing when disposed.

Enumerations

 AsyncDisposeFlags Flags to control asynchronous disposal.

Static Classes

 DisposableExtensions Extension methods for disposables.
 ReferenceCountedDisposable Creation methods for reference counted disposables.

Abstract Classes

 SingleAsyncDisposable`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.
 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.
 SingleNonblockingAsyncDisposable`1 A base class for disposables that need exactly-once semantics in a thread-safe way.
 SingleNonblockingDisposable`1 A base class for disposables that need exactly-once semantics in a thread-safe way.

Interfaces

 IReferenceCountedDisposable`1 An instance that represents a reference count. All members are threadsafe.
 IWeakReferenceCountedDisposable`1 An instance that represents an uncounted weak reference. All members are threadsafe.