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