Skip to content

DisposableAsyncExtensions class

Defined in

Namespace: ReactiveUI.Primitives.Async Assembly: ReactiveUI.Primitives.Async.dll Full name: ReactiveUI.Primitives.Async.DisposableAsyncExtensions Modifiers: public static

Summary

View source

Provides extension methods for converting synchronous disposable objects to asynchronous disposables.

Applies to

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

Remarks

These extension methods enable the use of existing IDisposable implementations in asynchronous disposal scenarios by wrapping them as IAsyncDisposable. This is useful when working with APIs that require asynchronous disposal, but only a synchronous Dispose method is available.

Methods

NameSummary
static ToDisposableAsync
Inherited members

Extension blocks

extension(IDisposable this)

  • ToDisposableAsync