Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e8c62f6

Browse files
Youssef1313mairaw
authored andcommitted
Fix wrong information for degreeOfParallelism (dotnet#3583)
* Fix wrong exception information for degreeOfParallelism * Update ParallelEnumerable.xml
1 parent 4e7b1f3 commit e8c62f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Linq/ParallelEnumerable.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10268,14 +10268,14 @@
1026810268
<Docs>
1026910269
<typeparam name="TSource">The type of elements of <paramref name="source" />.</typeparam>
1027010270
<param name="source">A ParallelQuery on which to set the limit on the degrees of parallelism.</param>
10271-
<param name="degreeOfParallelism">The degree of parallelism for the query. The default value is Math.Min(<see cref="P:System.Environment.ProcessorCount" />, <see langword="MAX_SUPPORTED_DOP" />) where <see langword="MAX_SUPPORTED_DOP" /> is 512.</param>
10271+
<param name="degreeOfParallelism">The degree of parallelism for the query.</param>
1027210272
<summary>Sets the degree of parallelism to use in a query. Degree of parallelism is the maximum number of concurrently executing tasks that will be used to process the query.</summary>
1027310273
<returns>ParallelQuery representing the same query as source, with the limit on the degrees of parallelism set.</returns>
1027410274
<remarks>To be added.</remarks>
1027510275
<exception cref="T:System.ArgumentNullException">
1027610276
<paramref name="source" /> is a null reference (Nothing in Visual Basic).</exception>
1027710277
<exception cref="T:System.ArgumentOutOfRangeException">
10278-
<paramref name="degreeOfParallelism" /> is less than 1 or greater than 511.</exception>
10278+
<paramref name="degreeOfParallelism" /> is less than 1 or greater than 512.</exception>
1027910279
<exception cref="T:System.InvalidOperationException">WithDegreeOfParallelism is used multiple times in the query.</exception>
1028010280
<related type="Article" href="~/docs/standard/parallel-programming/parallel-linq-plinq.md">Parallel LINQ (PLINQ)</related>
1028110281
</Docs>

0 commit comments

Comments
 (0)