Interface RetryOptions

Options for retry.

interface RetryOptions {
    jitter?: number;
    maxAttempts?: number;
    maxTimeout?: number;
    minTimeout?: number;
    multiplier?: number;
}

Properties

jitter?: number

Amount of jitter to introduce to the time between attempts. This is 1 for full jitter by default.

{1}
maxAttempts?: number

The maximum amount of attempts until failure.

{5}
maxTimeout?: number

The maximum milliseconds between attempts.

{60000}
minTimeout?: number

The initial and minimum amount of milliseconds between attempts.

{1000}
multiplier?: number

How much to backoff after each retry.

{2}