C.40 ParallelTask

Executes nested tasks in parallel.

Warning

This task is highly experimental, and will only work on *nix machines that have the PHP pcntl extension installed.

Table C.47: Attributes

NameTypeDescriptionDefaultRequired
threadCountIntegerMaximum number of threads / processes to use.n/aNo

C.40.1 Example

<parallel threadCount="4">
    <echo>Job 1</echo>
    <echo>Job 2</echo>
    <echo>Job 3</echo>
    <echo>Job 4</echo>
</parallel>