Interface Cancellable


public interface Cancellable
Represents tasks (possibly to run in the future) that can be cancelled. If a task is already running in another thread, behavior is unspecified: the task may either be forcibly terminated or run to completion.
Since:
7.4
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    A request to cancel the task
  • Method Details

    • cancel

      void cancel()
      A request to cancel the task