runLater

abstract fun runLater(delay: Long = 1, block: () -> Unit)

Runs a task at a later point in time once.

Parameters

delay

The delay, in ticks.

block

The task to run.