mirror of
https://github.com/Tribufu/ServerManagers
synced 2026-08-09 04:31:06 +00:00
IAsyncDisposable Change
- removed own implementation, using BCL library version now
This commit is contained in:
parent
7688e2b2ae
commit
db30824957
12 changed files with 89 additions and 138 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue