extensions/amp-consent/0.1/consent-state-manager.js
/**
   * Returns a promise that's resolved when consent instance is ready.
   */
Returns a promise that's resolved when consent instance is ready.
Returns a promise that ' s resolved when consent instance is ready .
whenConsentReady() {
    if (this.instance_) {
      return Promise.resolve();
    }
    if (!this.consentReadyPromise_) {
      const deferred = new Deferred();
      this.consentReadyPromise_ = deferred.promise;
      this.consentReadyResolver_ = deferred.resolve;
    }
    return this.consentReadyPromise_;
  }
whenConsentReady ( ) { if ( this . instance_ ) { return Promise . resolve ( ) ; } if ( ! this . consentReadyPromise_ ) { const deferred = new Deferred ( ) ; this . consentReadyPromise_ = deferred . promise ; this . consentReadyResolver_ = deferred . resolve ; } return this . consentReadyPromise_ ; }
Returns a promise that's resolved when consent instance is ready.
Returns a promise that ' s resolved when consent instance is ready .