3 types derived from ForEachAsyncState
System.Threading.Tasks.Parallel (3)
System\Threading\Tasks\Parallel.ForEachAsync.cs (3)
710private sealed class SyncForEachAsyncState<TSource> : ForEachAsyncState<TSource>, IDisposable 732private sealed class AsyncForEachAsyncState<TSource> : ForEachAsyncState<TSource>, IAsyncDisposable 754private sealed class ForEachState<T> : ForEachAsyncState<T>, IDisposable
2 references to ForEachAsyncState
System.Threading.Tasks.Parallel (2)
System\Threading\Tasks\Parallel.ForEachAsync.cs (2)
577_registration = cancellationToken.UnsafeRegister(static o => ((ForEachAsyncState<TSource>)o!).Cancellation.Cancel(), this); 703ExecutionContext.Run(_executionContext, static o => ((ForEachAsyncState<TSource>)o!)._taskBody(o), this);