vapor-chamber API reference - v1.16.0
    Preparing search index...

    Function isRetryableCode

    • Is this BusError code a transient (retryable) failure? Consults the registry. Returns undefined for codes not in ERROR_CODE_REGISTRY.

      Parameters

      • code: string

      Returns boolean | undefined

      if (result.error instanceof BusError && isRetryableCode(result.error.code) === false) {
      // permanent failure — don't re-dispatch
      }