get value()

in packages/sdk/src/AccessiblePromise.ts [38:49]


  get value(): T {
    switch (this.#status) {
      case 'fulfilled':
        return this.#value;
      case 'rejected':
        throw this.#value;
      case 'pending':
        throw Object.assign(new Error('Promise is pending.'), { then: this.then.bind(this) });
      default:
        throw new Error('Unreachable');
    }
  }