https://kotlinlang.org logo
#coroutines
Title
# coroutines
r

reactormonk

10/12/2022, 3:33 PM
Is there a
retryWhen
alternative for regular suspend functions? Just like https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/retry-when.html
n

Nick Allen

10/13/2022, 6:55 AM
Not quite (afaik) but you could use
::myMethod.asFlow().retryWhen { ... }.first()
5 Views