mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2026-01-06 00:04:21 +01:00
Fix CGM profile
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user