RetryDelayDynamic class final Option values

The RetryDelay.dynamic variant: every wait computed by a function of the failure count and the error.

Inheritance

Constructors

RetryDelayDynamic(Duration compute(int failureCount, Object error))
Computes every wait with compute; prefer spelling it RetryDelay.dynamic(…).
const

Properties

compute → Duration Function(int failureCount, Object error)
Given how many attempts had failed before the latest one and what it threw, how long to wait before trying again.
final
hashCode → int
The hash code for this object.
no setteroverride
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 error with failureCount failures before it.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override