Skip to main content
Module

x/dtils/mod.unstable.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.5.0/mod.unstable.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>