CancelableRetry<T> constructor

CancelableRetry<T>(
  1. FutureOr<T> request(
      ),
    1. {required FutureOr<bool> retryIf(
      1. T
      ),
    2. Duration delayFactor = const Duration(milliseconds: 200),
    3. Duration maxDelay = const Duration(seconds: 30),
    4. int maxAttempts = 8,
    5. double randomizationFactor = 0.25}
    )

    Implementation

    CancelableRetry(
      this.request, {
      required this.retryIf,
      this.delayFactor = const Duration(milliseconds: 200),
      this.maxDelay = const Duration(seconds: 30),
      this.maxAttempts = 8,
      this.randomizationFactor = 0.25,
    });