Diff<>(old, new, comparer, predicate, postProcessor) NewArray<>(size1, size2, size3, initialiser) RunMain(main, onUnhandledMain, onUnhandledThread) RunMain(main, onUnhandledMain, onUnhandledThread)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Extension method: void ParallelForEach<T>(this IEnumerable<T>, int, Action<T>)Declarationpublic static void ParallelForEach<T>(
this IEnumerable<T> items,
int maxSimultaneous,
Action<T> action
) Summary
Runs the specified action in parallel for each item in the input collection, using no more than the specified
maximum number of threads. Generic type parametersT |
Type of the items in the collection. |
Parametersthis IEnumerable<T> | items |
Input collection of items to pass to the action. | int | maxSimultaneous |
Maximum number of concurrent threads allowed. | Action<T> | action |
Action to run for each element. |
|