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