3 types derived from ForEachAsyncState
System.Threading.Tasks.Parallel (3)
System\Threading\Tasks\Parallel.ForEachAsync.cs (3)
686private sealed class SyncForEachAsyncState<TSource> : ForEachAsyncState<TSource>, IDisposable 708private sealed class AsyncForEachAsyncState<TSource> : ForEachAsyncState<TSource>, IAsyncDisposable 730private sealed class ForAsyncState<T> : ForEachAsyncState<T>, IDisposable
2 references to ForEachAsyncState
System.Threading.Tasks.Parallel (2)
System\Threading\Tasks\Parallel.ForEachAsync.cs (2)
553_registration = cancellationToken.UnsafeRegister(static o => ((ForEachAsyncState<TSource>)o!).Cancellation.Cancel(), this); 679ExecutionContext.Run(_executionContext, static o => ((ForEachAsyncState<TSource>)o!)._taskBody(o), this);