ParallelProcess<T1>
AbstractProcessRepresents an optimized parallel loop for one input array and no output.
Type parameters:
| T1 | Type of input. |
Properties
CountOverride
Gets or sets the number of iterations to process. If the override is negative, the size of the longest input array determines the count.
RunSingleThreaded
Gets whether this process is supposed to run in single threaded mode.
ThreadCount
Gets or sets the maximum degrees of parallelism for this process. Leave the value at a negative number to revert to default.
Methods
CreateOptions
Parameters:
| token (CancellationToken) |
Perform
#Perform a parallel process.
Parameters:
| data1 (T1[]) | Data to operate on. |
| token (CancellationToken) | Cancellation token. |
Perform
#public void Perform(T1[] data1)
Perform a parallel process without the ability to cancel.
Parameters:
| data1 (T1[]) | Data to operate on. |