TYPE

IAsyncDisposable

Defines asynchronous cleanup of owned resources.

Formal Syntax & Structure

csharp syntaxcsharp
ValueTask DisposeAsync()

Working Example

Example Snippetcsharp
// Documentary fragment; see lesson for context and imports.public ValueTask DisposeAsync() => ValueTask.CompletedTask;
C# & .NET Reference