Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class RetryPolicy(val maxRetries: Int = 3, val baseDelayMillis: Long = 500, val maxDelayMillis: Long, val backoffMultiplier: Double = 2.0, val jitterMillis: Long = 0, val retryStatusCodes: Set<Int> = setOf(429, 500, 502, 503, 504), val respectRetryAfterHeader: Boolean = true)
Link copied to clipboard
class SpotifyRetryExecutor(retryPolicy: RetryPolicy = RetryPolicy(), delayFn: suspend (Long) -> Unit = { delay(it) }, jitterFn: (Long) -> Long = { max -> if (max <= 0L) 0L else Random.nextLong(0L, max + 1) })
Link copied to clipboard