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, (fiber.tries * backoff) + Random().nextInt(1000)));
}