Interface Task
public interface Task
The task generated by
Scheduler-
Method Details
-
completed
Create a completed task- Parameters:
async- whether the task is asyncrepeating- whether the task is repeating- Returns:
- the completed task
-
isCancelled
boolean isCancelled()Check if the task is cancelled- Returns:
- true if the task is cancelled
-
cancel
void cancel()Cancel the task -
isAsync
boolean isAsync()Check if the task is async- Returns:
- true if the task is async
-
isRepeating
boolean isRepeating()Check if the task is repeating- Returns:
- true if the task is repeating
-