콘텐츠로 이동
한국어

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.

T

() => Promise<T>

RetryOptions

Promise<T>