add
Call to add Task instances that will be executed sequentially during the active loop.
Return
the added task
Parameters
new Task
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
run Queue Priority
the run queue priority.
new Task
task to add to the run queue
<T>
the inherited task type