Recursively retry a function call
The function to retry
Condition based on which the function will be retried. If true, the function will not be retried.
Error or error message to throw
Number of times to retry
Recursively retry a function call