Interface Task


@NonExtendable public interface Task
A task scheduled with the Scheduler: delayed or repeating, cancellable from any thread.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancels the task: it does not run again.
    boolean
     
  • Method Details

    • cancel

      void cancel()
      Cancels the task: it does not run again. A run that has already started finishes. Cancelling twice, or after the last run, does nothing.
    • isCancelled

      boolean isCancelled()
      Returns:
      whether cancel() was called