Skip to main content
Module

x/retry/wait/decorators.ts>waitUntilAsyncDecorator

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

a waitUntilAsync decorator

Type Parameters

RETURN_TYPE extends (...args: any[]) => Promise<any>

Parameters

the async function to execute

optional
duration: number

timeout in milliseconds

optional
error: Error