示例#1
0
文件: Parallel.cs 项目: mdae/MonoRT
 public static ParallelLoopResult For(int from, int to, ParallelOptions options, Action <int, ParallelLoopState> action)
 {
     return(For <object> (from, to, options, null, (i, s, l) => { action(i, s); return null; }, null));
 }
示例#2
0
文件: Parallel.cs 项目: mdae/MonoRT
 public static ParallelLoopResult For(int from, int to, ParallelOptions options, Action <int> action)
 {
     return(For(from, to, options, (index, state) => action(index)));
 }