Skip to content

Commit

Permalink
Change DisposeAsync return value signature to ValueTask from Task
Browse files Browse the repository at this point in the history
  • Loading branch information
liveans committed Jun 2, 2024
1 parent dbd5b01 commit 896f0f1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ namespace Microsoft.DotNet.RemoteExecutor;

internal static class RemoteExecutorExtensions
{
public static Task DisposeAsync(this RemoteInvokeHandle handle) =>
Task.Run(handle.Dispose);
public static async ValueTask DisposeAsync(this RemoteInvokeHandle handle)
{
await Task.Run(handle.Dispose);
}
}

0 comments on commit 896f0f1

Please sign in to comment.