RunForTask

constructor(timeout: Measure<Time>, 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(timeout: Measure<Time>, callback: Runnable, 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