SchedulerConfiguration

open fun SchedulerConfiguration(executeEveryTick: Long, runnable: Runnable)

Create a new SchedulerConfiguration for multiple runs. Will run async!

Parameters

executeEveryTick

Execute on every X tick. (20 ticks are 1 second!)

runnable

The runnable to be executed if the scheduler ticks.


open fun SchedulerConfiguration(executeEveryTick: Long, runOnce: Boolean, runnable: Runnable)

Create a new SchedulerConfiguration for multiple runs. Will run async!

Parameters

executeEveryTick

Execute on every X tick. (20 ticks are 1 second!)

runOnce

Run only once?

runnable

The runnable to be executed if the scheduler ticks.


open fun SchedulerConfiguration(executeEveryTick: Long, runOnce: Boolean, runnable: Runnable, async: Boolean)

Create a new SchedulerConfiguration for multiple runs.

Parameters

executeEveryTick

Execute on every X tick. (20 ticks are 1 second!)

runOnce

Run only once?

runnable

The runnable to be executed if the scheduler ticks.

async

Should it executed async?