MrKWatkins.Ast Help

ParallelPipelineStageBuilder<TNode>.WithMaxDegreeOfParallelism Method

Definition

Sets the maximum degree of parallelism for parallel processing. If set to 1 then the stage will proceed in serial. If greater than 1 then 1 thread will be used to walk the tree and the other threads will be used to process the nodes. Defaults to the number of processors in the machine.

public ParallelPipelineStageBuilder<TNode> WithMaxDegreeOfParallelism(int maxDegreeOfParallelism);

Parameters

Name

Type

Description

maxDegreeOfParallelism

Int32

The maximum degree of parallelism.

Returns

ParallelPipelineStageBuilder<TNode>

The fluent builder.

Last modified: 09 September 2024