toggle menu
trixnity-client
4.2.1
common
switch theme
search in API
trixnity-client
/
net.folivo.trixnity.client.utils
/
retryLoopFlow
retry
Loop
Flow
suspend
fun
<
T
>
retryLoopFlow
(
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
)
:
Flow
<
T
>