retry
retry<
T>(fn,options?):Promise<T>
Defined in: src/functions.ts:18
One-off retry, no pipeline needed: await retry(() => fetchUser(id), { maxRetryAttempts: 5, backoffType: 'exponential' }).
Throw NonRetryableError from fn to stop early.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”(context) => MaybePromise<T>
options?
Section titled “options?”RetryOptions<T> & CallOptions = {}
Returns
Section titled “Returns”Promise<T>