code: protected void interruptThread() {
          Thread currentThread = thread;
          if (currentThread == null) {
              interrupted = true;
          } else {
              currentThread.interrupt();
          }
      }
docs: Interrupt the current running {@link Thread}.