deferLast

fun <T : Task?> deferLast(@NonNull newDynamicTask: Supplier<T>): T

Add a task to the run queue, but after onReady has processed tasks. This is useful to call when working with tasks that should be queued at the very end of the autonomous, while still being able to add tasks asynchronously with user input in onReady.

This task will be internally wrapped into a DynamicTask.

Return

the added task

Parameters

newDynamicTask

deferred task to add to the run queue

<T>

the inherited task type