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