Skip to content

Non-sealed classes implementing 'IAsyncDisposable' should provide a 'DisposeAsyncCore' method #817

Open
@RalfKoban

Description

@RalfKoban

Non-sealed classes implementing IAsyncDisposable should provide a virtual and protected parameter-less DisposeAsyncCore method that returns a ValueTask. The signature should be:

protected virtual ValueTask DisposeAsyncCore()
{
}

(see https://learn.microsoft.com/en-us/dotnet/standard/garbage-collection/implementing-disposeasync )

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Unclear

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions