schedule
Schedules an action to be executed after the specified delay (expressed in milliseconds).
Since Kotlin
1.0Schedules an action to be executed at the specified time.
Since Kotlin
1.0inline fun Timer.schedule(delay: Long, period: Long, crossinline action: TimerTask.() -> Unit): TimerTask(source)
Schedules an action to be executed periodically, starting after the specified delay (expressed in milliseconds) and with the interval of period milliseconds between the end of the previous task and the start of the next one.
Since Kotlin
1.0inline fun Timer.schedule(time: Date, period: Long, crossinline action: TimerTask.() -> Unit): TimerTask(source)
Schedules an action to be executed periodically, starting at the specified time and with the interval of period milliseconds between the end of the previous task and the start of the next one.