How to write a timer actor in Scala?

后端 未结 6 928
忘了有多久
忘了有多久 2020-12-20 12:30

I need an actor to send a message every minute. How do I best achieve this behaviour? I am afraid of using java.lang.Thread.sleep(long millis) as a thread can b

6条回答
提交回复
热议问题