defer
Call to add Task instances that will be executed sequentially during the active loop. This task will be internally wrapped into a DynamicTask.
Return
the added task
Parameters
new Dynamic Task
deferred task to add to the run queue
<T>
the inherited task type
fun <T : Task?> defer(@NonNull runQueuePriority: AutonomousBunyipsOpMode.TaskPriority, @NonNull newDynamicTask: Supplier<T>): T
Add a task to the run queue at a specified run queue priority.
This task will be internally wrapped into a DynamicTask.
Return
the added task
Parameters
run Queue Priority
the run queue priority.
new Dynamic Task
deferred task to add to the run queue
<T>
the inherited task type