提交 8c740a1b 编写于 作者: V VSadov

typos in comments

上级 85cba828
......@@ -842,7 +842,7 @@ private async Task<CompilationCompletedEvent> ProcessCompilationEventsCoreAsync(
cancellationToken.ThrowIfCancellationRequested();
// NOTE: IsCompleted guarantees that Count will not increase
// the other is not true, so we need to check IsCompleted first and then check the Count
// the reverse is not true, so we need to check IsCompleted first and then check the Count
if ((prePopulatedEventQueue || CompilationEventQueue.IsCompleted) &&
CompilationEventQueue.Count == 0)
{
......
......@@ -182,7 +182,7 @@ private bool CompleteCore()
// the queue can either have waiters or items, not both
// adding an item would "unwait" the waiters
// the fact that we _had_ waiters at the time we completed the queue
// guarantees that there is no items in the que now or in the future,
// guarantees that there is no items in the queue now or in the future,
// so it is safe to cancel waiters with no loss of diagnostics
Debug.Assert(this.Count == 0, "we should not be cancelling the waiters when we have items in the queue");
foreach (var tcs in existingWaiters)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册