taskRunLater

fun taskRunLater(delay: Long, sync: Boolean = true, runnable: () -> Unit)

Executes the given runnable with the given delay. Either sync or async (specified by the sync parameter).