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

x/dtils/mod.ts>retryFailures

The best unofficial library of utilities for Deno applications
Go to Latest
function retryFailures
import { retryFailures } from "https://deno.land/x/dtils@2.6.0/mod.ts";

Call fn. If it throws, delay for delayTime, then call it again, up to retryCount times.

Parameters

fn: () => Promise<T> | T
optional
delayTime = [UNSUPPORTED]
optional
retryCount = [UNSUPPORTED]

Returns

Promise<T>