@vgerbot/async
    Preparing search index...

    Interface RetryOptions

    Options for configuring retry behavior in cancellable tasks.

    interface RetryOptions {
        backOff?: BackOffStrategy;
        delay?: number | ((attempt: number, error: Error) => number);
        maxAttempts: number;
        retryIf?: (error: Error) => boolean;
    }
    Index

    Properties

    backOff?: BackOffStrategy

    Built-in backoff strategy applied to numeric delays. Has no effect when delay is a custom function.

    delay?: number | ((attempt: number, error: Error) => number)

    Delay between retry attempts in milliseconds, or a function to calculate the delay. When used with a backOff strategy and a numeric value, this serves as the base delay.

    maxAttempts: number

    Maximum number of attempts (including the initial attempt)

    retryIf?: (error: Error) => boolean

    Predicate function to determine if a retry should be attempted based on the error. Returns true to retry, false to fail immediately.