ox.retry.ResultPolicy
See theResultPolicy companion object
A policy that allows to customize when a non-erroneous result is considered successful and when an error is worth retrying (which allows for failing fast on certain errors).
Type parameters
- E
-
The error type of the operation. For operations returning a
T
or aTry[T]
, this is fixed toThrowable
. For operations returning anEither[E, T]
, this can be anyE
. - T
-
The successful result type for the operation.
Value parameters
- isSuccess
-
A function that determines whether a non-erroneous result is considered successful. By default, every non-erroneous result is considered successful.
- isWorthRetrying
-
A function that determines whether an error is worth retrying. By default, all errors are retried.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article