askui.retry.Retry
attempt
method.
Example:
attempt
func
- The function to execute with retry logic
Exception
- Any exception that occurs during execution after all retry attempts are exhausted
askui.retry.ConfigurableRetry
on_exception_types
Tuple[Type[Exception]] - Tuple of exception types that should trigger a retrystrategy
Literal[“Exponential”, “Fixed”, “Linear”] - The retry strategy to use:"Exponential"
: Delay increases exponentially between retries"Fixed"
: Constant delay between retries"Linear"
: Delay increases linearly between retries
base_delay
int, optional - Base delay in milliseconds between retries.retry_count
int, optional - Maximum number of retry attempts.