Tries to run specified lambda several times if it throws, passing the last error to on_fail
Lambda function to execute
Retry parameters: attempts, attemptInterval, verbose, on_fail
Result object with ok indicating success and value holding the return value or error holding the last encountered error
ok
value
error
Tries to run specified lambda several times if it throws, passing the last error to on_fail