Commit fec40197 by patpat

优化TimerHelper

parent 68c483f5
......@@ -47,7 +47,11 @@ object TimerHelper {
return id
}
fun loop(runnable: Runnable, period: Long, times: Int = -1): Long {
fun loop(runnable: Runnable, period: Long): Long {
return loop(runnable, period, -1)
}
fun loop(runnable: Runnable, period: Long, times: Int): Long {
return loop({ _: Long, _: Boolean ->
runnable.run()
true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment