Skip to main content
Module

std/async/retry.ts>RetryOptions

Deno standard library
Go to Latest
interface RetryOptions
import { type RetryOptions } from "https://deno.land/std@0.221.0/async/retry.ts";

Options for retry.

Properties

optional
multiplier: number = 2

How much to backoff after each retry.

optional
maxTimeout: number = 60000

The maximum milliseconds between attempts.

optional
maxAttempts: number = 5

The maximum amount of attempts until failure.

optional
minTimeout: number = 1000

The initial and minimum amount of milliseconds between attempts.

optional
jitter: number = 1

Amount of jitter to introduce to the time between attempts. This is 1 for full jitter by default.