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.
    • Method Detail

      • cancel

        void cancel()
        A request to cancel the task