@b-jones-rfd/sp-rest-connect - v5.1.1
    Preparing search index...

    Type Alias RetryOptions

    Opt-in retry for read actions. Writes are never retried automatically. Delays use exponential backoff with full jitter: random(0, min(maxDelayMs, baseDelayMs * 2^attempt)). When the server sent Retry-After, that wait is used instead (no jitter); if it exceeds maxDelayMs, retrying stops and the failure is returned with retryAfterMs set so the caller can decide.

    type RetryOptions = {
        baseDelayMs?: number;
        maxDelayMs?: number;
        retries?: number;
        retryOn?: (failure: Failure, attempt: number) => boolean;
    }
    Index
    baseDelayMs?: number

    Base delay in milliseconds.

    200

    maxDelayMs?: number

    Upper bound on a single delay, including a server-requested Retry-After.

    5000

    retries?: number

    Extra attempts after the first failure.

    2

    retryOn?: (failure: Failure, attempt: number) => boolean

    Decide whether a failed attempt should be retried. attempt is 1-based. The default retries NETWORK, TIMEOUT, and HTTP with status 429, 502, 503 or 504. ABORTED is never retried.