canRetry method

bool canRetry(
  1. int attempt
)

Whether attempt (0-indexed) is within the allowed retry count.

Implementation

bool canRetry(int attempt) => attempt < maxRetries;