RetryDelayExponential class final Option values
The RetryDelay.exponential variant: min(base * 2^failureCount, maximum).
- Inheritance
-
- Object
- RetryDelay
- RetryDelayExponential
Constructors
- RetryDelayExponential({Duration base = const Duration(seconds: 1), Duration maximum = const Duration(seconds: 30)})
-
One second, doubling, capped at thirty unless
baseormaximumsay otherwise.const
Properties
- base → Duration
-
The wait before the first retry; each failure doubles it. One second by
default.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- maximum → Duration
-
The wait never exceeds this. Thirty seconds by default.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
int failureCount, Object error) → Duration -
The wait before the next attempt, after an attempt threw
errorwithfailureCountfailures before it.inherited -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override