Skip to content

Commit ec8cbd2

Browse files
elizarovqwwdfsad
authored andcommitted
Short Dispatchers.Default.toString value ("DefaultDispatcher")
1 parent 2ba458b commit ec8cbd2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/kotlinx-coroutines-core/src/scheduling/Dispatcher.kt

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ internal object DefaultScheduler : ExperimentalCoroutineDispatcher() {
2020
override fun close() {
2121
throw UnsupportedOperationException("$DEFAULT_SCHEDULER_NAME cannot be closed")
2222
}
23+
24+
override fun toString(): String = DEFAULT_SCHEDULER_NAME
25+
26+
@InternalCoroutinesApi
27+
fun toDebugString(): String = super.toString()
2328
}
2429

2530
/**

0 commit comments

Comments
 (0)