module
Session::Retry
Overview
Retry utility for resilient operations
Extended Modules
Defined in:
retry.crInstance Method Summary
-
#retryable_connection_error?(ex : Exception) : Bool
Predicates for common retry scenarios
- #retryable_network_error?(ex : Exception) : Bool
- #retryable_timeout_error?(ex : Exception) : Bool
-
#with_retry(config : RetryConfig = Session.config.retry_config, &block : -> T) : T forall T
Retry a block with exponential backoff
-
#with_retry_if(should_retry : Exception -> Bool, config : RetryConfig = Session.config.retry_config, &block : -> T) : T forall T
Retry with custom retry condition
Instance Method Detail
Retry a block with exponential backoff
def with_retry_if(should_retry : Exception -> Bool, config : RetryConfig = Session.config.retry_config, &block : -> T) : T forall T
#
Retry with custom retry condition