Skip to content

Interface: RetryOptions ​

Tuning for RetryTransport. All fields have conservative defaults.

Properties ​

PropertyModifierTypeDescription
baseDelayMs?readonlynumberBase backoff in ms, doubled per attempt. Default 1000.
maxDelayMs?readonlynumberBackoff ceiling in ms. Default 30000.
maxRetries?readonlynumberMaximum retries after the first attempt. Default 3 (4 attempts total).
random?readonly() => numberJitter source in [0,1). Default Math.random.
sleep?readonly(ms) => Promise<void>Delay primitive; injectable so tests do not actually wait. Default setTimeout.

MIT License. Not affiliated with, endorsed or sponsored by Meta or Instagram.