later

fun later(delay: Ticks, task: () -> Unit): TaskHandle

Runs the task after the specified delay.

Return

a TaskHandle that can be used to cancel the task

Parameters

delay

the amount of time to wait before running the task

task

the block of code to execute