RetryPolicy

Since

0.3.0-beta01

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun <T> execute(shouldRetry: (Throwable) -> Boolean = RetryPolicy::isDefaultRetryable, block: suspend (attempt: Int) -> T): T

Execute block with exponential backoff, honoring server Retry-After headers, and surfacing the full attempt history as a RetryError on exhaustion.