runAsync

fun runAsync(delay: Int = 1, task: () -> Unit): ScheduledTask

Runs an async task after the specified delay in ticks

Return

the ScheduledTask

Parameters

delay

The delay in ticks. Defaults to 1 (1 tick = 0.05 seconds)

task

The task to run