@pengzhanbo/utils - v3.7.3
    Preparing search index...

    Interface RetryOptions

    interface RetryOptions {
        delay?: number;
        limit?: number;
        signal?: AbortSignal;
        timeout?: number;
    }
    Index

    Properties

    delay?: number

    The delay between retries, default is 0

    重试间隔,默认为 0

    limit?: number

    The total number of attempts (including the initial call), default is 3

    总尝试次数(包含初始调用),默认 3

    signal?: AbortSignal

    AbortSignal for cancellation. When aborted, the retry will be rejected with AbortError.

    用于取消的 AbortSignal。当触发中止时,重试将被拒绝并返回 AbortError。

    timeout?: number

    Maximum total time in milliseconds for all retries. If exceeded, the retry will be rejected with TimeoutError.

    所有重试的最大总时间(毫秒)。如果超过此时间,重试将被拒绝并返回 TimeoutError。