Code example for TimerTask

Methods: cancel

0
	protected void finishTask() { 
		if (isFreeing) {
			return; 
		} 
		purge();
		currenTask.cancel();
		currenTask = null;
		isFreeing = true;
	} 
 
	protected void destory() { 
		cancel();
	} 
 
	class Task extends TimerTask {
		WorkerTask task;
 
		public Task(WorkerTask task) {
			this.task = task;
		} 
Stop searching for code, let great code find you!  Add Codota to your java IDE