Skip to main content

@std/async@0.215.0

latest
Works with
It is unknown whether this package works with Node.js, Deno, Browsers, Cloudflare Workers, Bun
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Bun
JSR Score70%
Published2 years ago (0.215.0)
interface RetryOptions

Options for retry.

Properties

How much to backoff after each retry.

optional
maxTimeout: number = 60000

The maximum milliseconds between attempts.

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.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/async

Import symbol

import { type RetryOptions } from "@std/async/retry";
or

Import directly with a jsr specifier

import { type RetryOptions } from "jsr:@std/async/retry";