IAsyncDisposable Change

- removed own implementation, using BCL library version now
This commit is contained in:
Brett Hewitson 2022-06-22 01:14:08 +10:00
parent 7688e2b2ae
commit db30824957
12 changed files with 89 additions and 138 deletions

View file

@ -12,6 +12,11 @@ namespace ServerManagerTool.Common.Utils
// Do nothing, let the task continue. Eliminates compiler warning about non-awaited tasks in an async method.
}
public static void DoNotWait(this ValueTask task)
{
// Do nothing, let the task continue. Eliminates compiler warning about non-awaited tasks in an async method.
}
public static async Task RunOnUIThreadAsync(Action action)
{
var app = Application.Current;