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