| Author |
TimerTask cancel()
|
Raj Ohadi
Ranch Hand
Joined: Jun 30, 2006
Posts: 314
|
|
|
TimerTask has a cancel() method. If I have a repeated run schedule, this call forces the next scheduled run not to happen. But does it kill the thread ?
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16688
|
|
Originally posted by Raj Ohadi: TimerTask has a cancel() method. If I have a repeated run schedule, this call forces the next scheduled run not to happen. But does it kill the thread ?
No, it does not kill the thread. If you want to do that, you need to call the cancel() method of the Timer itself. Henry
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
 |
|
|
subject: TimerTask cancel()
|
|
|