Fix CGM profile

This commit is contained in:
Sylwester Zielinski
2023-03-20 09:18:12 +01:00
parent 60d41868fb
commit ccef26ae09
7 changed files with 31 additions and 61 deletions

View File

@@ -37,6 +37,7 @@ import android.util.Log
import kotlinx.coroutines.CoroutineExceptionHandler
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.launch
val String.Companion.EMPTY
@@ -53,6 +54,6 @@ private val exceptionHandler = CoroutineExceptionHandler { _, t ->
}
fun CoroutineScope.launchWithCatch(block: suspend CoroutineScope.() -> Unit) =
launch(Job() + exceptionHandler) {
launch(SupervisorJob() + exceptionHandler) {
block()
}