OnResultPredicate

typealias OnResultPredicate = (result: Any?) -> Boolean(source)

Predicate to determine if a result should be considered as a failure. Depending on the mechanism context, this predicate can be used in different ways:

  • retry: used to determine if a retry should be attempted;

  • circuit breaker: used to determine if a failure should be recorded.