• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How i can ensure that a timer (java.util.Timer) is canceld ?

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thank you for reading my post
How i can ensure that a Timer is canceled ?
When i try to cancel my timer it raise an Exception and say that it is already canceled and i find no method to show me the Timer State
 
Henry Wong
author
Marshal
Pie
Posts: 21515
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure? Both the Timer and TimerTask class allows you to call the cancel() method repeatedly. The subsequent calls are not supposed to have any affect.

Henry
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic