Interface Task<T>
- All Known Implementing Classes:
AbstractTask,RepeatingTask,SingleRunTask
public interface Task<T>
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancel any future execution of this task.boolean
-
Method Details
-
getLastResult
- Returns:
- the last result of this task, or an exception if the task failed.
-
cancel
void cancel()Cancel any future execution of this task. If the task is currently running, it will be allowed to finish.Repeatedly calling this method has no effect.
-
isCancelled
boolean isCancelled()
-