docs: public void onResolve(ResolutionCallback callback) {
      checkState(this.resolveCallback == null, "callback has already been set.");
      checkState(this.value == null, "value is resolved.");
      this.resolveCallback = checkNotNull(callback);
    }