В
fun callWithRetry(body: () -> Unit){
try{
body()
}catch(e: Exception){
body()
}
}
callWithRetry { api.getData() }
callWithRetry { api.createItem(123) }
Size: a a a
В
fun callWithRetry(body: () -> Unit){
try{
body()
}catch(e: Exception){
body()
}
}
callWithRetry { api.getData() }
callWithRetry { api.createItem(123) }
ОА
VS
ОА
PE
ОА
Г
ОА
Г
/
ES
n
ОА
n
ОА
n
n
ОА
PE