Class AsyncDisposableBase
Base class for asynchronous resource disposables.
Inheritance
System.Object
AsyncDisposableBase
Implements
System.IAsyncDisposable
Namespace: System
Assembly: Reaqtor.Local.Core.dll
Syntax
public abstract class AsyncDisposableBase : Object, IAsyncDisposable
Constructors
AsyncDisposableBase()
Declaration
protected AsyncDisposableBase()
Methods
DisposeAsync()
Disposes the resource asynchronously.
Declaration
public ValueTask DisposeAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.ValueTask | Task representing the eventual completion of the disposal request. |
DisposeAsyncCore(CancellationToken)
Disposes the resource asynchronously.
Declaration
protected abstract Task DisposeAsyncCore(CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | token | Token to observe for cancellation of the disposal request. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Task representing the eventual completion of the disposal request. |
Implements
System.IAsyncDisposable