shouldRetry
Determines whether the call should be retried.
Return
true if the call should be retried, false otherwise.
Parameters
attempt
Current retry attempt.
error
The error returned by the previous attempt.
Determines whether the call should be retried.
true if the call should be retried, false otherwise.
Current retry attempt.
The error returned by the previous attempt.