constructor (callback, handler, allowErrorStatusCodes) {
    if (typeof callback !== 'function') {
      throw new TypeError('callback must be a function')
    }

    this.#callback = callback
    this.#handler = handler
    this.#allowErrorStatusCodes = allowErrorStatusCodes
  }
@param {(boolean) => void} callback Function to call if the cached value is valid
@param {import('../../types/dispatcher.d.ts').default.DispatchHandlers} handler
@param {boolean} allowErrorStatusCodes