Interface UpdateTask
public interface UpdateTask
Handle for a repeating update task registered with
ViewContents.schedule(Duration, Consumer). Tasks are cancelled automatically when the
view closes; use this to cancel earlier.-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Stops the task.booleanWhether the task has been cancelled (explicitly or by the view closing).
-
Method Details
-
cancel
void cancel()Stops the task. Safe to call multiple times. -
isCancelled
boolean isCancelled()Whether the task has been cancelled (explicitly or by the view closing).
-