trixnity-client
Toggle table of contents
4.14.1
common
Platform filter
common
Switch theme
Search in API
trixnity-client
trixnity-client
/
net.folivo.trixnity.client.utils
/
retryWhen
retry
When
suspend
fun
<
T
>
retryWhen
(
requestedState
:
Flow
<
RetryLoopFlowState
>
,
scheduleBase
:
Duration
=
100.milliseconds
,
scheduleFactor
:
Double
=
2.0
,
scheduleLimit
:
Duration
=
5.minutes
,
onError
:
suspend
(
error
:
Throwable
)
->
Unit
=
{}
,
onCancel
:
suspend
(
)
->
Unit
=
{}
,
block
:
suspend
(
)
->
T
)
:
T