retry<T extends unknown = any, P extends any[] = any[]>( run: (...args: P) => Promise<T>, count?: number,): IWrappedFn<T, P> Type Parameters
- T extends unknown = any
- P extends any[] = any[]
Parameters
- run: (...args: P) => Promise<T>
Optionalcount: number
- The wrapped function that can be canceled.
Retries a function multiple times until it succeeds or reaches the maximum number of retries.