Optional
back'constant'
Optional
delay?: numberthe amount of time in milliseconds between attempts
NOTE
this is only the starting amount if using a
RetryBackOffType
oflinear
orexponential
as the value will continually increase on each retry attempt.
1
Optional
errorif set to true
then an Error
will be thrown
after the last attempt has failed
true
Optional
failallows for specifying a function that will be called each time the
retryable
is called and doesn't succeed (doesn't pass the condition
)
an Func<void, void | PromiseLike<void>>
accepting no arguments and returning nothing
the current Retry<T>
instance
Optional
maxthe maximum number of retry attempts to make
before giving up. leaving this unset or set to
a value of Infinity
means there is no limit
Infinity
Optional
maxthe maximum number of milliseconds to attempt
retries. leaving this unset or set to a value
of Infinity
means there is no duration limit
Infinity
Generated using TypeDoc
a value indicating if the delay between retry attempts remains the same each time or increases based on some calculation