Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/proc/tools/deps/retry.ts>RetryOptions

A better way to work with processes in Deno.
Go to Latest
interface RetryOptions
import { type RetryOptions } from "https://deno.land/x/proc@0.21.9/tools/deps/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.