IllegalStateException when trying to schedule a timer

后端 未结 1 714
情书的邮戳
情书的邮戳 2021-01-29 16:05

From the documentation of the cancel method:

(Loosely speaking, this method returns true if it prevents one or more scheduled executions from taking place

相关标签:
1条回答
  • 2021-01-29 16:43

    You can not reuse the timertask . Create new instance of TimerTask.

    0 讨论(0)
提交回复
热议问题