parallel

inline fun <E> Task<E>.parallel(policy: Parallel.Policy = Policy.Sequence, orchestrator: Parallel.Orchestrator = Orchestrator.Resume, tasks: Array<Task<E>> = Array(), init: Parallel<E>.() -> Unit = {}): Int

Creates and adds a Parallel to the receiver Task.

Return

the index where the Parallel has been added.

Parameters

E

the type of the receiving task's blackboard.

policy

the Parallel.Policy of the Parallel.

orchestrator

the Parallel.Orchestrator of the Parallel.

tasks

the children of the Parallel.

init

an optional inline block to configure the Parallel.