final void cancel(){
synchronized (lock) {
    if (!completed) {
      unsafe.putIntVolatile(null,pollingAddress,cancelValue());
    }
  }
}

final void cancel ( ) { synchronized ( lock ) { if ( ! completed ) { unsafe . putIntVolatile ( null , pollingAddress , cancelValue ( ) ) ; } } }
" cancels " the task by writing bits into memory location that it polled by the task .
