3 types derived from ForEachAsyncState
System.Threading.Tasks.Parallel (3)
System\Threading\Tasks\Parallel.ForEachAsync.cs (3)
710
private sealed class SyncForEachAsyncState<TSource> :
ForEachAsyncState
<TSource>, IDisposable
732
private sealed class AsyncForEachAsyncState<TSource> :
ForEachAsyncState
<TSource>, IAsyncDisposable
754
private 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);
703
ExecutionContext.Run(_executionContext, static o => ((
ForEachAsyncState
<TSource>)o!)._taskBody(o), this);