Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ data class RetryPolicy(
/** Maximum delay between retries. */
val maxDelay: Duration? = null,
/**
* Maximum number of attempts before giving up retrying.
* Maximum number of attempts, including the initial, before giving up retrying.
*
* The policy gives up retrying when either at least the given number of attempts is reached, or
* the [maxDuration] (if set) is reached first. If both [maxAttempts] and [maxDuration] are
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public RetryPolicy setMaxDelay(@Nullable Duration maxDelay) {
}

/**
* Maximum number of attempts before giving up retrying.
* Maximum number of attempts, including the initial, before giving up retrying.
*
* <p>The policy gives up retrying when either at least the given number of attempts is reached,
* or the {@code maxDuration} specified with {@link #setMaxDuration(Duration)} (if set) is reached
Expand Down