Type Alias RetryOpts<T>

RetryOpts<T>: BackoffOptions & {
    abort: AbortSignal;
    log: boolean;
    predelayMs: number;
    taskValueFallback: T;
}

Backoff options

Type Parameters

  • T

Type declaration

  • Readonlyabort: AbortSignal

    Optional abort signal

  • Readonlylog: boolean

    Log: true monitors the task execution by logging to console

  • ReadonlypredelayMs: number

    Initial waiting period before first attempt (optional)

  • ReadonlytaskValueFallback: T

    Default task value to return if it fails