Review
This commit is contained in:
parent
4e7ab4a452
commit
9b54818d54
1 changed files with 2 additions and 3 deletions
|
|
@ -28,7 +28,7 @@ public static class AsyncWaitHandle
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_registeredWaitHandle.Unregister(default);
|
_registeredWaitHandle.Unregister(default);
|
||||||
_cancellationTokenRegistration.Dispose();
|
_cancellationTokenRegistration.Dispose();
|
||||||
|
|
||||||
|
|
@ -44,12 +44,11 @@ public static class AsyncWaitHandle
|
||||||
private void Canceled(CancellationToken token)
|
private void Canceled(CancellationToken token)
|
||||||
{
|
{
|
||||||
_tcs.SetCanceled(token);
|
_tcs.SetCanceled(token);
|
||||||
this.Dispose();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private Task Continuation(Task task)
|
private Task Continuation(Task task)
|
||||||
{
|
{
|
||||||
this.Dispose();
|
Dispose();
|
||||||
return task;
|
return task;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue