We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 786b8de commit 75ae6e5Copy full SHA for 75ae6e5
src/jvmMain/kotlin/dev/evo/prometheus/hiccup/HiccupMetricsJvm.kt
@@ -1,9 +1,8 @@
1
package dev.evo.prometheus.hiccup
2
3
-import kotlinx.coroutines.newSingleThreadContext
+import kotlinx.coroutines.Dispatchers
4
import kotlin.coroutines.CoroutineContext
5
6
-// FIXME: Dispatchers.Default consumes too much CPU with tight delay
+// TODO: Check high CPU consumption
7
// See https://github.com/Kotlin/kotlinx.coroutines/issues/840
8
-@UseExperimental(kotlinx.coroutines.ObsoleteCoroutinesApi::class)
9
-actual val hiccupCoroutineContext: CoroutineContext = newSingleThreadContext("hiccup-thread")
+actual val hiccupCoroutineContext: CoroutineContext = Dispatchers.Default
0 commit comments