提交 131b4906 编写于 作者: J Jason Malinowski

Delete some comments that no longer apply

These comments should have been deleted in f43398f3.
上级 b5dbed03
......@@ -529,7 +529,6 @@ private sealed class Request
private CancellationToken _cancellationToken;
private CancellationTokenRegistration _cancellationTokenRegistration;
// WARNING: this is a mutable struct, and thus cannot be made readonly
private TaskCompletionSource<T> _taskCompletionSource;
public Request()
......@@ -557,10 +556,6 @@ private void CompleteFromTaskSynchronouslyStub(object task)
public void CompleteFromTaskSynchronously(Task<T> task)
{
// AsyncTaskMethodBuilder doesn't give us Try* methods, and the Set methods may throw if the task
// is already completed. The belief is that the race is somewhere between rare to impossible, and
// so we'll do a quick check to see if the task is already completed or otherwise just give it a shot
// and catch it if it fails
if (this.Task.IsCompleted)
{
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册