This commit is contained in:
Jöran Malek 2023-11-28 00:01:05 +01:00
parent 4e7ab4a452
commit 9b54818d54

View file

@ -28,7 +28,7 @@ public static class AsyncWaitHandle
{
return;
}
_registeredWaitHandle.Unregister(default);
_cancellationTokenRegistration.Dispose();
@ -44,12 +44,11 @@ public static class AsyncWaitHandle
private void Canceled(CancellationToken token)
{
_tcs.SetCanceled(token);
this.Dispose();
}
private Task Continuation(Task task)
{
this.Dispose();
Dispose();
return task;
}