RunForTask

constructor(@NonNull timeout: Measure<Time>, @NonNull callback: Runnable)

A runnable that will run until timeout.

Parameters

timeout

The time to run the task for

callback

The callback to run every loop


constructor(@NonNull timeout: Measure<Time>, @NonNull callback: Runnable, @NonNull finishCallback: Runnable)

A runnable that will run until timeout, with a finish callback.

Parameters

timeout

The time to run the task for

callback

The callback to run every loop

finishCallback

The callback to run after this task finishes