Posted By:
Mike_Friedrich
Posted On:
Friday, August 2, 2002 03:13 AM
The Timer class has only one background thread, thats why the TimerTask should complete its execution quickly.
You can cancel one task with myTask.cancel(), in this case its better to keep the reference of the task object.
The task run method will always executed completly, even if cancled. So canceling a task that runs only once and is started already has no effect.
Regards, Mike