DialBackoff class

DialBackoff implements exponential backoff for failed dials

Constructors

DialBackoff.new({Duration baseDelay = const Duration(milliseconds: 100), Duration maxDelay = const Duration(minutes: 5)})
Creates a new DialBackoff

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

nextDelay() Duration
Gets the next delay and increases the backoff
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Resets the backoff to the base delay
toString() String
A string representation of this object.
inherited

Operators

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