예제 #1
0
파일: Task.cs 프로젝트: y-hama/Synapse
 public static void ForStep(int start, int end, ForStepFunction func)
 {
     for (int i = start; i < end; i++)
     {
         func(i);
     }
 }
예제 #2
0
파일: Task.cs 프로젝트: y-hama/Synapse
 public static void ForParallel(int start, int end, ForStepFunction func)
 {
     Parallel.For(start, end, i => { func(i); });
 }