retry
retry<
T>(factory,options):Promise<T>
Defined in: src/pattern/retry.ts:24
Invoke factory up to options.attempts times with configurable
exponential backoff. Returns the first successful result. Propagates
the final error if every attempt fails or shouldRetry vetoes a retry.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”factory
Section titled “factory”() => Promise<T>
options
Section titled “options”Returns
Section titled “Returns”Promise<T>