import java.util.Timer import kotlin.concurrent.schedule Timer("SettingUp", false).schedule(500) { doSomething() }