Documentation
    Preparing search index...

    Interface RetryOptions

    interface RetryOptions {
        afterStatusCodes?: number[];
        factor?: number;
        forever?: boolean;
        maxRetryTime?: number;
        maxTimeout?: number;
        methods?: string[];
        minTimeout?: number;
        randomize?: boolean;
        retries?: number;
        unref?: boolean;
    }
    Index

    Properties

    afterStatusCodes?: number[]
    factor?: number

    The exponential factor to use.

    2
    
    forever?: boolean

    Whether to retry forever.

    false
    
    maxRetryTime?: number

    The maximum time (in milliseconds) that the retried operation is allowed to run.

    Infinity
    
    maxTimeout?: number

    The maximum number of milliseconds between two retries.

    Infinity
    
    methods?: string[]
    minTimeout?: number

    The number of milliseconds before starting the first retry.

    1000
    
    randomize?: boolean

    Randomizes the timeouts by multiplying a factor between 1-2.

    false
    
    retries?: number

    The maximum amount of times to retry the operation.

    10
    
    unref?: boolean

    Whether to unref the setTimeout's.

    false