We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f876cd5 commit c28f5bbCopy full SHA for c28f5bb
CodeJam.Main/DisposableExtensions.cs
@@ -71,8 +71,8 @@ public static async ValueTask DisposeAsync(this IDisposable disposable)
71
Code.NotNull(disposable, nameof(disposable));
72
if (disposable is IAsyncDisposable asyncDisposable)
73
await asyncDisposable.DisposeAsync();
74
- await new ValueTask(Task.Run(() => disposable.Dispose()));
+ await Task.Run(() => disposable.Dispose());
75
}
76
#endif
77
78
-}
+}
0 commit comments