spierce7
11/15/2018, 10:06 PMgildor
11/16/2018, 2:19 AMelizarov
11/16/2018, 7:01 AMinline fun rerunAutomatically(block: () -> Unit) {
while (true) {
runCatching { block() }.onFailure { handleException(it) }
}
}
launch {
rerunAutomatically { /* your code here */ }
}
gildor
11/16/2018, 7:18 AMlouiscad
11/16/2018, 11:52 AMlittlelightcz
11/19/2018, 1:02 PM