SpotifyRetryExecutor

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) })

Constructors

Link copied to clipboard
constructor(retryPolicy: RetryPolicy = RetryPolicy(), delayFn: suspend (Long) -> Unit = { delay(it) }, jitterFn: (Long) -> Long = { max -> if (max <= 0L) 0L else Random.nextLong(0L, max + 1) })

Functions

Link copied to clipboard
suspend fun <T> execute(request: suspend () -> SpotifyApiResponse<T>): SpotifyApiResponse<T>

Executes execute.