runAsyncRepeating

fun runAsyncRepeating(delay: Int = 1, period: Int = 1, task: () -> Unit): RecurringTask

Runs a repeating task asynchronously every given ticks (1 tick = 0.05 seconds) after the given ticks (1 tick = 0.05 seconds)

Return

the RecurringTask

Parameters

delay

The delay in ticks. Defaults to 1

period

The period in ticks. Defaults to 1

task

The task to run