I hope to support Promise callbacks within isRetryable, allowing it to obtain the status of other asynchronous data for judgment
export interface RetryOpts extends BaseRetryOpts {
isRetryable?: (err: Error) => boolean | Promise<boolean>
}
|
export interface RetryOpts extends BaseRetryOpts { |