Use IAsyncDisposable on scheduler which also waits for completion (#235)

* Use IAsyncDisposable on scheduler which also waits for completion

* formatting
This commit is contained in:
Adam Hathcock
2025-03-03 14:50:38 +00:00
committed by GitHub
parent 1fea4cc01b
commit fe964f4c8e
3 changed files with 25 additions and 29 deletions
@@ -81,10 +81,10 @@ public sealed class SerializeProcess(
[AutoInterfaceIgnore]
public async ValueTask DisposeAsync()
{
_highest.Dispose();
_belowNormal.Dispose();
sqLiteJsonCacheManager.Dispose();
await WaitForSchedulerCompletion().ConfigureAwait(false);
await _highest.DisposeAsync().ConfigureAwait(false);
await _belowNormal.DisposeAsync().ConfigureAwait(false);
sqLiteJsonCacheManager.Dispose();
}
public void ThrowIfFailed()