shared
Toggle table of contents
0.1.0
common
Platform filter
common
Switch theme
Search in API
shared
shared
/
com.nubasu.spotify.webapi.wrapper.utils
/
SpotifyRetryExecutor
/
SpotifyRetryExecutor
Spotify
Retry
Executor
constructor
(
retryPolicy
:
RetryPolicy
=
RetryPolicy()
,
delayFn
:
suspend
(
Long
)
->
Unit
=
{ delay(it) }
,
jitterFn
:
(
Long
)
->
Long
=
{ max -> if (max <= 0L) 0L else Random.nextLong(0L, max + 1) }
)