Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/async/mod.ts>RetryOptions

The Deno Standard Library
Latest
interface RetryOptions
import { type RetryOptions } from "https://deno.land/std@0.224.0/async/mod.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.