code: public void cancel() {
          if(actionInBackground != null) {
              if(executorService != null) {
                 asyncFutureTask.cancel(true);
              } else {
                  asyncThread.interrupt();
              }
          }
      }
docs: Cancels the AsyncJob interrupting the inner thread.