From 108cf14da53448ef480253459d680ad6bfbd325e Mon Sep 17 00:00:00 2001 From: Mygod Date: Mon, 21 Oct 2024 23:30:42 -0700 Subject: [PATCH] Add name to callbackWorker for debugging --- lib/build.gradle.kts | 2 +- lib/src/main/java/be/mygod/librootkotlinx/RootServer.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index 8c22339..e6c8606 100644 --- a/lib/build.gradle.kts +++ b/lib/build.gradle.kts @@ -24,7 +24,7 @@ android { dependencies { api("androidx.collection:collection-ktx:1.2.0") api("androidx.core:core:1.10.1") - api("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4") + api("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0") testImplementation("junit:junit:4.13.2") androidTestImplementation("androidx.test:runner:1.6.2") androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1") diff --git a/lib/src/main/java/be/mygod/librootkotlinx/RootServer.kt b/lib/src/main/java/be/mygod/librootkotlinx/RootServer.kt index 61b4fed..b7c2a62 100644 --- a/lib/src/main/java/be/mygod/librootkotlinx/RootServer.kt +++ b/lib/src/main/java/be/mygod/librootkotlinx/RootServer.kt @@ -447,7 +447,7 @@ class RootServer { } val callbackWorker by lazy { mainInitialized.await() - Dispatchers.IO.limitedParallelism(1) + Dispatchers.IO.limitedParallelism(1, "callbackWorker") } // access to cancellables shall be wrapped in defaultWorker val cancellables = LongSparseArray<() -> Unit>()