ExpBackoff constructor

ExpBackoff({
  1. Duration delay = defaultDelay,
  2. Duration maxDelay = defaultMaxDelay,
})

Creates a new ExpBackoff instance with optional delay and maxDelay parameters.

Implementation

ExpBackoff({
  this.delay = defaultDelay,
  this.maxDelay = defaultMaxDelay,
});