Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/async/retry.ts>RetryOptions

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface RetryOptions
import { type RetryOptions } from "https://deno.land/std@0.191.0/async/retry.ts";

Properties

optional
multiplier: number

How much to backoff after each retry. This is 2 by default.

optional
maxTimeout: number

The maximum milliseconds between retries. This is 60000 by default.

optional
maxAttempts: number

The maximum amount of retries until failure. This is 5 by default.

optional
minTimeout: number

The inital and minimum amount of milliseconds between retries. This is 1000 by default.

optional
jitter: number

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