add

inline fun <E, T : Task<E>> Task<E>.add(task: T, init: T.() -> Unit = {}): Int

Adds a task to the receiver Task.

Return

the index where the task has been added.

Parameters

task

the task to add.

init

an optional inline block to configure the task.

Type Parameters

E

the type of the receiving task's blackboard.

T

the type of the task which gets added.