We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given a block that creates a future a it would be nice to have something that will retry that future if it fails.
For example, given a max number of retries and a predicate to decide if a given exception should lead to retry or not, something like this:
val retryFor = { case ex: RetryableException => true case _ => false } val result: Future[Int] = retry(maxTimes = 3, decider = retryFor) { doSomeFutureStuff(): Future[Int] }
The text was updated successfully, but these errors were encountered:
Additionally, almost the same but with exponential back off?
Sorry, something went wrong.
No branches or pull requests
Given a block that creates a future a it would be nice to have something that will retry that future if it fails.
For example, given a max number of retries and a predicate to decide if a given exception should lead to retry or not, something like this:
The text was updated successfully, but these errors were encountered: