whileFalse

Schedules task when the condition changes from true to false, and finishes the task when the same condition changes back to true.

Does not restart the task if it finishes by itself while the condition is still false. Use a RepeatTask for this behaviour.


infix fun whileFalse(runnable: Runnable): Scheduler.Trigger