ExpBackoff class

ExpBackoff implements an exponential backoff mechanism.

Constructors

ExpBackoff({Duration delay = defaultDelay, Duration maxDelay = defaultMaxDelay})
Creates a new ExpBackoff instance with optional delay and maxDelay parameters.

Properties

delay ↔ Duration
Initial delay duration
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
maxDelay ↔ Duration
Maximum delay duration
getter/setter pair
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
run(Future<void> f()) → Future<(Object?, bool)>
Runs the provided function with exponential backoff.
toString() → String
A string representation of this object.
inherited

Operators

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