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

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

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

Definition at line 1072 of file Parallel.cs.

1073 {
1074 if (source == null)
1075 {
1076 throw new ArgumentNullException("source");
1077 }
1078 if (body == null)
1079 {
1080 throw new ArgumentNullException("body");
1081 }
1082 if (localInit == null)
1083 {
1084 throw new ArgumentNullException("localInit");
1085 }
1086 if (localFinally == null)
1087 {
1088 throw new ArgumentNullException("localFinally");
1089 }
1090 if (!source.KeysNormalized)
1091 {
1093 }
1094 return PartitionerForEachWorker(source, s_defaultParallelOptions, null, null, null, null, body, localInit, localFinally);
1095 }
static string Parallel_ForEach_OrderedPartitionerKeysNotNormalized
Definition SR.cs:16
Definition SR.cs:7
static readonly ParallelOptions s_defaultParallelOptions
Definition Parallel.cs:148

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