remove = function() {
      goog.array.removeAllIf(self.pending_, function(ele) {
        return ele == p;
      });
    }
Registers a pending promise or reset function.
@param {?goog.Promise|?firebase.Promise|?function()} p The pending promise.