public void setShouldCancelFun(final BooleanSupplier shouldCancelFun) {
    synchronized (CANCEL_FUN_LOCK) {
      myShouldCancelFun = shouldCancelFun;
    }
  }
public void setShouldCancelFun(final BooleanSupplier shouldCancelFun)