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

Luke Rohde

11/08/2019, 5:08 PM
there isn’t a coroutines standard lib function for retries is there?
s

sikri

11/08/2019, 5:14 PM
No But for flows there is
g

gildor

11/09/2019, 12:35 AM
stdlib contains just a couple of functions that use coroutines. You probably talking about kotlinx.coroutines. but yeah, answer the same, there is retry for Flow, no standard suspend retry
d

debop

11/10/2019, 12:34 AM
You can use retry for coroutines in resilience4j 1.1.+
s

sikri

11/10/2019, 8:54 PM
@gildor indeed, missed that stdlib function part
6 Views