Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ForEach< TSource, TLocal >() [7/8]

static ParallelLoopResult System.Threading.Tasks.Parallel.ForEach< TSource, TLocal > ( Partitioner< TSource > source,
Func< TLocal > localInit,
Func< TSource, ParallelLoopState, TLocal, TLocal > body,
Action< TLocal > localFinally )
inlinestatic

Definition at line 1051 of file Parallel.cs.

1052 {
1053 if (source == null)
1054 {
1055 throw new ArgumentNullException("source");
1056 }
1057 if (body == null)
1058 {
1059 throw new ArgumentNullException("body");
1060 }
1061 if (localInit == null)
1062 {
1063 throw new ArgumentNullException("localInit");
1064 }
1065 if (localFinally == null)
1066 {
1067 throw new ArgumentNullException("localFinally");
1068 }
1069 return PartitionerForEachWorker(source, s_defaultParallelOptions, null, null, null, body, null, localInit, localFinally);
1070 }
static readonly ParallelOptions s_defaultParallelOptions
Definition Parallel.cs:148

References System.Threading.Tasks.Parallel.s_defaultParallelOptions, and System.source.