File tree 1 file changed +8
-0
lines changed
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
41
41
}
42
42
}
43
43
44
+ #if NETSTANDARD20_OR_GREATER || NET45_OR_GREATER || TARGETS_NETCOREAPP
44
45
/// <summary>
45
46
/// Gets the maximum degree of parallelism for the scheduler.
46
47
/// Matches to the <see cref="Parallel.ForEach{TSource}(IEnumerable{TSource}, Action{TSource})"/> behavior.
47
48
/// Limits <paramref name="value"/> by <see cref="TaskScheduler.MaximumConcurrencyLevel"/> value (if non-zero positiver value).
48
49
/// Otherwise, uses <see cref="Environment.ProcessorCount"/> as fallback value.
49
50
/// </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
50
58
public static int GetMaxDegreeOfParallelism ( [ NotNull ] this TaskScheduler scheduler , int value )
51
59
{
52
60
Code . NotNull ( scheduler , nameof ( scheduler ) ) ;
You can’t perform that action at this time.
0 commit comments