I would like to compute number of retries dynamically, depending on details about the error. I guess this can be done by setting retries to a large number and then throwing an error in the retryDelay function but I'm not sure about the implications.
Do you have a recommendation? (Do / don't do that, what is a suitable error, etc.)
I would like to compute number of retries dynamically, depending on details about the error. I guess this can be done by setting
retries
to a large number and then throwing an error in theretryDelay
function but I'm not sure about the implications.Do you have a recommendation? (Do / don't do that, what is a suitable error, etc.)