Skip to content

DisposableAsync class

Defined in

Namespace: ReactiveUI.Extensions.Async.Disposables Assembly: ReactiveUI.Extensions.dll Full name: ReactiveUI.Extensions.Async.Disposables.DisposableAsync Modifiers: public static

Summary

View source

Provides factory methods for creating and working with implementations of IAsyncDisposable.

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Remarks

This class offers utility members to simplify the creation of asynchronous disposables, such as wrapping a delegate in an IAsyncDisposable implementation or providing a no-op disposable instance. All members are thread-safe and can be used to facilitate resource management in asynchronous scenarios.

Properties

NameSummary
static EmptyGets an IAsyncDisposable instance that performs no action when disposed asynchronously.

Methods

NameSummary
static CreateCreates a new asynchronous disposable object that invokes the specified delegate when disposed asynchronously.
Inherited members