RetryConfig class
Retry configuration for async operations
Constructors
Properties
- backoffMultiplier → double
-
Exponential backoff multiplier (1.0 = no backoff, 2.0 = doubles each time)
final
- delay → Duration
-
Delay between retries
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxAttempts → int
-
Maximum number of retry attempts
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldRetry → bool Function(Object error)?
-
Function to determine if an error should be retried
final
Methods
-
getDelayForAttempt(
int attempt) → Duration - Calculate delay for a specific attempt (with exponential backoff)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited