Albert
03/29/2019, 2:46 PMSupervisorJob
to restart a coroutine when it stops exceptionally?
supervisorScope {
launch {
throw Exception()
}
}
r4zzz4k
03/29/2019, 3:06 PMretry@ while(true) {
try {
throw Exception()
} catch(e: Exception) {
continue@retry
}
break@retry
}