Photomechanics API
EnumerableExtensions Class Reference

From https://stackoverflow.com/a/25877042. More...

Static Public Member Functions

static Task ForEachAsync< T > (this IEnumerable< T > source, Int32 dop, Func< T, Task > body)
 Async foreach with max degree of parallelism control More...
 

Detailed Description

Member Function Documentation

◆ ForEachAsync< T >()

static Task EnumerableExtensions.ForEachAsync< T > ( this IEnumerable< T >  source,
Int32  dop,
Func< T, Task >  body 
)
static

Async foreach with max degree of parallelism control

Template Parameters
T
Parameters
source
dopDegree of parallelism
body
Returns