Skip to main content
Module

x/retry/wait/decorators.ts>waitUntilDecorator

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

a waitUntil decorator

Type Parameters

T extends (...args: any[]) => any

Parameters

fn: T

the function to execute

optional
duration: number

timeout in milliseconds

optional
error: Error