Is there a `retryWhen` alternative for regular sus...
# coroutines
r
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
Not quite (afaik) but you could use
::myMethod.asFlow().retryWhen { ... }.first()