Skip to content

withRetry

function withRetry<T>(fn, opts?): Promise<T>;

Defined in: core/src/retry.ts:134

Run fn, retrying transient failures with backoff. For one-shot calls such as a title, a summary or a compaction pass.

Type Parameter
T
Parameter Type
fn (attempt) => Promise<T>
opts RetryOptions

Promise<T>