1 write to CancellationToken
Microsoft.CodeAnalysis.Features (1)
SolutionCrawler\IdleProcessor.cs (1)
43
CancellationToken
= cancellationToken;
29 references to CancellationToken
Microsoft.CodeAnalysis.Features (28)
SolutionCrawler\IdleProcessor.cs (7)
60
_processorTask = Task.Factory.SafeStartNewFromAsync(ProcessAsync,
CancellationToken
, TaskScheduler.Default);
106
this.
CancellationToken
.ThrowIfCancellationRequested();
115
if (!await expeditableDelaySource.Delay(delayTimeSpan,
CancellationToken
).ConfigureAwait(false))
130
while (!
CancellationToken
.IsCancellationRequested)
135
await WaitAsync(
CancellationToken
).ConfigureAwait(false);
136
CancellationToken
.ThrowIfCancellationRequested();
142
CancellationToken
.ThrowIfCancellationRequested();
SolutionCrawler\WorkCoordinator.AbstractPriorityProcessor.cs (2)
71
using (Logger.LogBlock(FunctionId.WorkCoordinator_WaitForHigherPriorityOperationsAsync,
CancellationToken
))
75
CancellationToken
.ThrowIfCancellationRequested();
SolutionCrawler\WorkCoordinator.HighPriorityProcessor.cs (3)
132
if (
CancellationToken
.IsCancellationRequested)
186
if (
CancellationToken
.IsCancellationRequested)
220
if (!processedEverything && !
CancellationToken
.IsCancellationRequested)
SolutionCrawler\WorkCoordinator.LowPriorityProcessor.cs (2)
125
if (
CancellationToken
.IsCancellationRequested)
171
if (!processedEverything && !
CancellationToken
.IsCancellationRequested)
SolutionCrawler\WorkCoordinator.NormalPriorityProcessor.cs (6)
106
if (
CancellationToken
.IsCancellationRequested)
137
if (
CancellationToken
.IsCancellationRequested)
219
if (
CancellationToken
.IsCancellationRequested)
261
if (
CancellationToken
.IsCancellationRequested)
335
if (!processedEverything && !
CancellationToken
.IsCancellationRequested)
480
workItem: new WorkItem(), (a, s, c) => a.NewSolutionSnapshotAsync(s, c),
CancellationToken
).ConfigureAwait(false);
SolutionCrawler\WorkCoordinator.SemanticChangeProcessor.cs (8)
91
=> DequeueWorker(_workGate, _pendingWork,
CancellationToken
);
105
!changedMember.TryResolve(await document.GetSyntaxRootAsync(
CancellationToken
).ConfigureAwait(false), out SyntaxNode? declarationNode))
110
var symbol = model.GetDeclaredSymbol(declarationNode,
CancellationToken
);
246
using (_workGate.DisposableWait(
CancellationToken
))
373
using (_workGate.DisposableWait(
CancellationToken
))
393
CancellationToken
.ThrowIfCancellationRequested();
397
var isLowPriority = priorityService != null && await priorityService.IsLowPriorityAsync(GetRequiredDocument(project, documentId, document),
CancellationToken
).ConfigureAwait(false);
436
=> DequeueWorker(_workGate, _pendingWork,
CancellationToken
);
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\ProcessTelemetry\RemoteProcessTelemetryService.PerformanceReporter.cs (1)
64
using (RoslynLogger.LogBlock(FunctionId.Diagnostics_GeneratePerformaceReport,
CancellationToken
))