10 references to Cancellation
Microsoft.CodeAnalysis.Threading.Package (10)
ParallelExtensions.NetFramework.cs (10)
131while (!state.Cancellation.IsCancellationRequested) 138if (state.Cancellation.IsCancellationRequested || // check now that the lock has been acquired 163await state.LoopBody(element, state.Cancellation.Token); 296while (!state.Cancellation.IsCancellationRequested) 303if (state.Cancellation.IsCancellationRequested || // check now that the lock has been acquired 328await state.LoopBody(element, state.Cancellation.Token); 437_registration = cancellationToken.Register(static o => ((ForEachAsyncState<TSource>)o!).Cancellation.Cancel(), this); 513Cancellation.Cancel(); 540Debug.Assert(!Cancellation.IsCancellationRequested); 618Enumerator = source.GetAsyncEnumerator(Cancellation.Token) ?? throw new InvalidOperationException();