public boolean isCancelled(){
  Thread runner=this.runner;
  return isCancelled || (runner != null && runner.isInterrupted());
}

public boolean isCancelled ( ) { Thread runner = this . runner ; return isCancelled || ( runner != null && runner . isInterrupted ( ) ) ; }
tests whether or not this runnable is cancelled .
