function PromiseEndpoint(promiseFunction) {
    _classCallCheck(this, PromiseEndpoint);

    _get(Object.getPrototypeOf(PromiseEndpoint.prototype), "constructor", this).call(this);
    this.endpointPromise = promiseFunction;