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 Type
    Method
    Description
    void
    Stops the task.
    boolean
    Whether 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).