File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -41,12 +41,20 @@ private static int ProcessorCount
4141 }
4242 }
4343
44+ #if NETSTANDARD20_OR_GREATER || NET45_OR_GREATER || TARGETS_NETCOREAPP
4445 /// <summary>
4546 /// Gets the maximum degree of parallelism for the scheduler.
4647 /// Matches to the <see cref="Parallel.ForEach{TSource}(IEnumerable{TSource}, Action{TSource})"/> behavior.
4748 /// Limits <paramref name="value"/> by <see cref="TaskScheduler.MaximumConcurrencyLevel"/> value (if non-zero positiver value).
4849 /// Otherwise, uses <see cref="Environment.ProcessorCount"/> as fallback value.
4950 /// </summary>
51+ #else
52+ /// <summary>
53+ /// Gets the maximum degree of parallelism for the scheduler.
54+ /// Limits <paramref name="value"/> by <see cref="TaskScheduler.MaximumConcurrencyLevel"/> value (if non-zero positiver value).
55+ /// Otherwise, uses <see cref="Environment.ProcessorCount"/> as fallback value.
56+ /// </summary>
57+ #endif
5058 public static int GetMaxDegreeOfParallelism ( [ NotNull ] this TaskScheduler scheduler , int value )
5159 {
5260 Code . NotNull ( scheduler , nameof ( scheduler ) ) ;
You can’t perform that action at this time.
0 commit comments