Skip to content

DisposableAsyncMixins class

Defined in

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

Summary

View source

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

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

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 ToDisposableAsyncConverts an IDisposable instance to an IAsyncDisposable wrapper.
Inherited members