Interface Cancellable

All Known Subinterfaces:
PrioritisedExecutor.PrioritisedTask

public interface Cancellable
Interface specifying that something can be cancelled.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Tries to cancel this task.
  • Method Details

    • cancel

      boolean cancel()
      Tries to cancel this task. If the task is in a stage that is too late to be cancelled, then this function will return false. If the task is already cancelled, then this function returns false. Only when this function successfully stops this task from being completed will it return true.