private boolean checkIsInProgressAndComplete() {
      // optional early check of action cancellation
      return myCompleted.compareAndSet(false, true) && !myCancelled;
    }
private boolean checkIsInProgressAndComplete()