getDelay method
- 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)));
}