Interface WorkQueue.CancelableRunnable

  • All Superinterfaces:
    Runnable
    All Known Subinterfaces:
    WorkQueue.CanceledWhileRunning
    Enclosing class:
    WorkQueue

    public static interface WorkQueue.CancelableRunnable
    extends Runnable
    Runnable needing to know it was canceled. Note that cancel is called only in case the task is not in progress already.
    • Method Detail

      • cancel

        void cancel()
        Notifies the runnable it was canceled.