Search
Preparing search index...
The search index is not available
@planjs/utils
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@planjs/utils
RetryOption
Interface RetryOption
Hierarchy
BaseRetryOption
RetryOption
Index
Properties
delay
Ms
is
Retryable
max
Attempts
Properties
Optional
delay
Ms
delay
Ms
:
number
|
(
(
attempts
:
number
)
=>
number
)
重试间隔
Optional
is
Retryable
is
Retryable
:
(
err
:
Error
)
=>
boolean
如果有些错误符合预期,可以跳过
param
Type declaration
(
err
:
Error
)
:
boolean
Parameters
err:
Error
Returns
boolean
Optional
max
Attempts
max
Attempts
:
number
最大等待次数 不设置则一直运行
Exports
Retry
Option
delay
Ms
is
Retryable
max
Attempts
重试间隔