async dispatch(event, data) {
        if (typeof data === 'function') {
            data = data();
        }

        return this.dispatcher.fire(event, data);
    }
Dispatch the given event.

@param {string} event
@param {any | (() => any)}      [data]