Skip to main content
Version: 2.x

Function: retryBursarOperation()

retryBursarOperation<T>(operation, options?): Promise<T>

Defined in: javascript/src/retry.ts:53

Execute an operation with bounded, cancellable exponential backoff.

Retries are deliberately opt-in at the error level: by default only typed Bursar errors whose retryable flag is true are attempted again. The operation must be read-only or idempotent because a transport failure can make a mutation's commit outcome indeterminate.

Type Parameters

T

T

Parameters

operation

() => T | PromiseLike<T>

options?

BursarRetryOptions = {}

Returns

Promise<T>