LinearBackoff class

Implements a linear backoff retry strategy where the delay increases by a fixed amount.

Implemented types

Constructors

LinearBackoff({Duration increment = const Duration(seconds: 5)})
Creates a linear backoff strategy.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
increment Duration
The time increment added for each retry attempt.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getDelay(int attemptNumber) Duration
Calculates the delay for a given retry attempt. Can return a Duration directly or a Future<Duration>.
override
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