getDelay method

  1. @override
Duration getDelay(
  1. Fiber fiber
)
override

Returns a Duration that the SDK should wait before retrying.

Implementation

@override
Duration getDelay(Fiber fiber) {
  return Duration(
      milliseconds: min(maximumDelay,
          pow(2, fiber.tries - 1).toInt() * 1000 + Random().nextInt(1000)));
}