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

x/proc/src/deps/retry.ts

A better way to work with processes in Deno.
Latest
import * as proc from "https://deno.land/x/proc@0.21.9/src/deps/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.