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

@ -1,5 +1,4 @@
using ServerManagerTool.Common.Interfaces;
using System;
using System;
using System.Threading.Tasks;
using System.Threading.Tasks.Dataflow;
@ -44,7 +43,7 @@ namespace ServerManagerTool.Common.Lib
return PostAction(() => { action.Invoke(); return true; });
}
public async Task DisposeAsync()
public async ValueTask DisposeAsync()
{
await PostAction(() => this.workQueue.Complete());
}