10 references to Cancellation
Microsoft.CodeAnalysis.Workspaces (10)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (10)
134
while (!state.
Cancellation
.IsCancellationRequested)
141
if (state.
Cancellation
.IsCancellationRequested || // check now that the lock has been acquired
166
await state.LoopBody(element, state.
Cancellation
.Token);
299
while (!state.
Cancellation
.IsCancellationRequested)
306
if (state.
Cancellation
.IsCancellationRequested || // check now that the lock has been acquired
331
await state.LoopBody(element, state.
Cancellation
.Token);
440
_registration = cancellationToken.Register(static o => ((ForEachAsyncState<TSource>)o!).
Cancellation
.Cancel(), this);
516
Cancellation
.Cancel();
543
Debug.Assert(!
Cancellation
.IsCancellationRequested);
621
Enumerator = source.GetAsyncEnumerator(
Cancellation
.Token) ?? throw new InvalidOperationException();