Skip to main content
Module

x/retry/retry/utils/untilDefined/decorators.ts>retryAsyncUntilDefinedDecorator

Re-execute a function until it does not throw an error or execute a function with a timeout.
Very Popular
Latest
function retryAsyncUntilDefinedDecorator
import { retryAsyncUntilDefinedDecorator } from "https://deno.land/x/retry@v2.0.0/retry/utils/untilDefined/decorators.ts";

Type Parameters

PARAMETERS_TYPE extends any[]
RETURN_TYPE

Parameters

fn: (...args: PARAMETERS_TYPE) => Promise<RETURN_TYPE | undefined | null>
optional
retryOptions: RetryUtilsOptions

Returns

(...args: PARAMETERS_TYPE) => Promise<RETURN_TYPE>