Skip to main content

@rtorcato/supabase-common / WithRetryOptions

Interface: WithRetryOptions

Defined in: errors.ts:98

Properties​

attempts?​

optional attempts?: number

Defined in: errors.ts:100

Total tries, including the first. Default 3.


baseDelayMs?​

optional baseDelayMs?: number

Defined in: errors.ts:102

Delay before the first retry in ms, doubled each time. Default 200.


shouldRetry?​

optional shouldRetry?: (err) => boolean

Defined in: errors.ts:104

Which errors to retry. Default isRetryable.

Parameters​

err​

unknown

Returns​

boolean