ParallelEnumerable.WithDegreeOfParallelism<'TSource> Method (ParallelQuery<'TSource>, Int32)
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.
Assembly: System.Core (in System.Core.dll)
static member WithDegreeOfParallelism<'TSource> : source:ParallelQuery<'TSource> * degreeOfParallelism:int -> ParallelQuery<'TSource>
A ParallelQuery on which to set the limit on the degrees of parallelism.
Return ValueType: System.Linq.ParallelQuery<'TSource>
ParallelQuery representing the same query as source, with the limit on the degrees of parallelism set.
The type of elements of source.
Available since 8
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 8.1