add

fun <T : Task?> add(@NonNull newTask: T): T

Call to add Task instances that will be executed sequentially during the active loop.

Return

the added task

Parameters

newTask

task to add to the run queue

<T>

the inherited task type


fun <T : Task?> add(@NonNull runQueuePriority: AutonomousBunyipsOpMode.TaskPriority, @NonNull newTask: T): T

Add a task to the run queue at a specified run queue priority.

Return

the added task

Parameters

runQueuePriority

the run queue priority.

newTask

task to add to the run queue

<T>

the inherited task type

See also