kotlin.concurrent.java.util.Timer.scheduleAtFixedRate

scheduleAtFixedRate

inline fun Timer.scheduleAtFixedRate(
    delay: Long, 
    period: Long, 
    crossinline action: TimerTask.() -> Unit
): TimerTask

Platform and version requirements: JVM

Schedules an action to be executed periodically, starting after the specified delay (expressed in milliseconds) and with the interval of period milliseconds between the start of the previous task and the start of the next one.

inline fun Timer.scheduleAtFixedRate(
    time: Date, 
    period: Long, 
    crossinline action: TimerTask.() -> Unit
): TimerTask

Platform and version requirements: JVM

Schedules an action to be executed periodically, starting at the specified time and with the interval of period milliseconds between the start of the previous task and the start of the next one.

© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.concurrent/java.util.-timer/schedule-at-fixed-rate.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部