Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: void ParallelForEach<T>(this IEnumerable<T>, Action<T, int>)

  • Declared in: RT.Util.Ut

Declaration

public 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 parameters

T Type of the items in the collection.

Parameters

this 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.