API

ParallelOptions.MaxDegreeOfParallelism

Limits concurrent operations for the configured loop.

Formal Syntax & Structure

csharp syntaxcsharp
new ParallelOptions { MaxDegreeOfParallelism = 2 }

Working Example

Example Snippetcsharp
// Documentary fragment; see linked lesson for context.new ParallelOptions { MaxDegreeOfParallelism = 2 }
C# & .NET Reference