Interface Task


public interface Task
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancels the task.
    Returns the current status of the task.
  • Method Details

    • status

      TaskStatus status()
      Returns the current status of the task.
      Returns:
      status of the task
    • cancel

      void cancel()
      Cancels the task. This will still let the current task finish if already running.