ParallelProcess<TResult, T1>

AbstractProcessReferences
public abstract class ParallelProcess<TResult, T1> : AbstractProcess
Represents an optimized parallel loop for one input array.
TResultType of result.
T1Type of input.

Properties

CountOverride

public int CountOverride { get; set; }
Gets or sets the number of iterations to process. If the override is negative, the size of the longest input array determines the count.
inherited fromAbstractProcess

RunSingleThreaded

public bool RunSingleThreaded { get; }
Gets whether this process is supposed to run in single threaded mode.
inherited fromAbstractProcess

ThreadCount

public int ThreadCount { get; set; }
Gets or sets the maximum degrees of parallelism for this process. Leave the value at a negative number to revert to default.
inherited fromAbstractProcess

Methods

CreateOptions

protected ParallelOptions CreateOptions(CancellationToken token)
inherited fromAbstractProcess
token (CancellationToken)

Perform

#
public TResult[] Perform(T1[] data1, CancellationToken token)
data1 (T1[])
token (CancellationToken)

Perform

#
public TResult[] Perform(T1[] data1)
data1 (T1[])

Process

#
protected abstract TResult Process(T1 data, CancellationToken token)
data (T1)
token (CancellationToken)