Is this BusError code a transient (retryable) failure? Consults the registry. Returns undefined for codes not in ERROR_CODE_REGISTRY.
if (result.error instanceof BusError && isRetryableCode(result.error.code) === false) { // permanent failure — don't re-dispatch} Copy
if (result.error instanceof BusError && isRetryableCode(result.error.code) === false) { // permanent failure — don't re-dispatch}
Is this BusError code a transient (retryable) failure? Consults the registry. Returns undefined for codes not in ERROR_CODE_REGISTRY.