in Time Finishing If
Run the task assigned to in run() in a certain amount of time of the condition remaining true. If on a controller, this will delay the activation of the task by the specified amount of time. Once this condition is met, the task will be forcefully stopped and the scheduler will move on. This is useful for continuous tasks.
Parameters
interval
The time interval
condition
The condition to stop the task. Note the task will be auto-stopped if it finishes by itself, this condition simply allows for an early finish if this condition is met.