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

x/dtils/deps.ts>asyncUtils.RetryOptions

The best unofficial library of utilities for Deno applications
Latest
interface asyncUtils.RetryOptions
import { type asyncUtils } from "https://deno.land/x/dtils@2.6.1/deps.ts";
const { RetryOptions } = asyncUtils;

Properties

optional
multiplier: number

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

optional
maxTimeout: number

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

optional
maxAttempts: number

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

optional
minTimeout: number

The initial and minimum amount of milliseconds between attempts. This is 1000 by default.

optional
jitter: number

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