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>, Action<T, int>)Declarationpublic static void ParallelForEach<T>(
this IEnumerable<T> items,
Action<T, int> action
) Summary
Runs the specified action in parallel for each item in the input collection. Generic type parametersT |
Type of the items in the collection. |
Parametersthis IEnumerable<T> | items |
Input collection of items to pass to the action. | Action<T, int> | action |
Action to run for each element. The second parameter is the index of the thread running it. |
|