10 references to Cancellation
Microsoft.CodeAnalysis.Workspaces (10)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (10)
135
while (!state.
Cancellation
.IsCancellationRequested)
142
if (state.
Cancellation
.IsCancellationRequested || // check now that the lock has been acquired
167
await state.LoopBody(element, state.
Cancellation
.Token);
300
while (!state.
Cancellation
.IsCancellationRequested)
307
if (state.
Cancellation
.IsCancellationRequested || // check now that the lock has been acquired
332
await state.LoopBody(element, state.
Cancellation
.Token);
441
_registration = cancellationToken.Register(static o => ((ForEachAsyncState<TSource>)o!).
Cancellation
.Cancel(), this);
517
Cancellation
.Cancel();
544
Debug.Assert(!
Cancellation
.IsCancellationRequested);
622
Enumerator = source.GetAsyncEnumerator(
Cancellation
.Token) ?? throw new InvalidOperationException();