Skip to main content

RetryPredicate

Type Alias RetryPredicate 

Source
pub type RetryPredicate = Arc<dyn Fn(&Error) -> bool + Send + Sync>;
Expand description

Extra retry opt-in mirroring the Python SDK’s predicate / exceptions options: called with every error; returning true retries it even when the built-in rules would not.

Aliased Type§

pub struct RetryPredicate { /* private fields */ }