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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user