![]() | asyncDoAsyncDoT Method (IListT, ActionT, Int64, Int32) |
Namespace: WhetStone.Looping
public static ParallelLoopResult AsyncDo<T>( this IList<T> this, Action<T, long> action, int maxParallelism )
This simply decorates For(Int32, Int32, ActionInt32).
Each thread is started to independently run over a slice of this. This accesses each member of this via the ItemInt32 operator. If the ItemInt32 operator is particularly slow, consider the Enumerating overloads.