A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/dotnet/api/system.linq.parallelenumerable.withdegreeofparallelism below:

ParallelEnumerable.WithDegreeOfParallelism<TSource> Method (System.Linq) | Microsoft Learn

ParallelEnumerable.WithDegreeOfParallelism<TSource> Method Definition

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.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::ParallelQuery<TSource> ^ WithDegreeOfParallelism(System::Linq::ParallelQuery<TSource> ^ source, int degreeOfParallelism);
public static System.Linq.ParallelQuery<TSource> WithDegreeOfParallelism<TSource>(this System.Linq.ParallelQuery<TSource> source, int degreeOfParallelism);
static member WithDegreeOfParallelism : System.Linq.ParallelQuery<'Source> * int -> System.Linq.ParallelQuery<'Source>
<Extension()>
Public Function WithDegreeOfParallelism(Of TSource) (source As ParallelQuery(Of TSource), degreeOfParallelism As Integer) As ParallelQuery(Of TSource)
Type Parameters
TSource

The type of elements of source.

Parameters
degreeOfParallelism
Int32

The degree of parallelism for the query.

Returns

ParallelQuery representing the same query as source, with the limit on the degrees of parallelism set.

Exceptions

source is a null reference (Nothing in Visual Basic).

degreeOfParallelism is less than 1 or greater than 512.

WithDegreeOfParallelism is used multiple times in the query.

See also

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4