Call a function every X seconds when activated - Scala

前端 未结 0 1600
感情败类
感情败类 2021-01-28 03:14

I have a variable which is going to help me check if 10 seconds has passed.

private val currTime: Long = System.currentTimeMillis()
private val time: Long = 10000         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题