A retry policy in which the a failure determines the way a future should be retried.
The partial function provided may define the domain of both the success OR exceptional
failure of a future fails explicitly.
val policy = retry.When {
case RetryAfter(retryAt) => retry.Pause(delay = retryAt)
}
val future = policy(issueRequest)
If the result is not defined for the depends block, the future will not
be retried.
A retry policy in which the a failure determines the way a future should be retried. The partial function provided may define the domain of both the success OR exceptional failure of a future fails explicitly.
If the result is not defined for the depends block, the future will not be retried.