ConditionalRepeating

class ConditionalRepeating(scheduler: Scheduler, delay: Ticks = ZERO, period: Ticks = ZERO) : Runner

A Runner that executes a task repeatedly as long as a condition is met.

Constructors

Link copied to clipboard
constructor(scheduler: Scheduler, delay: Ticks = ZERO, period: Ticks = ZERO)

Functions

Link copied to clipboard

Limits the number of times the task can run.

Link copied to clipboard

Limits the duration for which the task can run.

Link copied to clipboard
open infix override fun run(task: () -> Unit): TaskHandle

Starts the conditional repeating task.

Link copied to clipboard

Adds a condition to be met for the task to continue running.