Parallel.ForEachAsync is a .NET method for processing an enumerable sequence in parallel, using an asynchronous delegate.
Parallel.ForEachAsync
is a .NET method for processing an enumerable sequence in parallel, using an asynchronous delegate. Both synchronous and asynchronous source sequences are supported. The asynchronous delegate accepts a CancellationToken
and returns a ValueTask
. This method it is part of the task-parallel-library.