docs: function _gpfEventGetPromiseHandler (eventHandlingMethod) {
      return new Promise(function (resolve, reject) {
          eventHandlingMethod(function (event) {
              if (_GPF_EVENT_ERROR === event.type) {
                  reject(event.get("error"));
              } else {
                  resolve(event);
              }
          });
      });
  }