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

std/async/retry.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.216.0/async/retry.ts";

Classes

Error thrown in retry once the maximum number of failed attempts has been reached.

Functions

Calls the given (possibly asynchronous) function up to maxAttempts times. Retries as long as the given function throws. If the attempts are exhausted, throws a RetryError with cause set to the inner exception.

Interfaces

Options for retry.