code: 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);
              }
          });
      });
  }
docs: Wraps a function that signals events so that it can be used with promises (by letting the eventHandler parameter
  undefined).
  
  @param {Function} eventHandlingMethod encapsulates the call to the event handling function, receives a parameter
  that must be passed as an event handler.
  @return {Promise<gpf.events.Event>}