Skip to content

Commit 773ab97

Browse files
authored
Rename DefaultExecutor backing working accodring to the name of the outer class (#3040)
1 parent 3574c2f commit 773ab97

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kotlinx-coroutines-core/native/src/Builders.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private class BlockingCoroutine<T>(
8484
} else {
8585
parkNanos = Long.MAX_VALUE
8686
}
87-
// note: process next even may loose unpark flag, so check if completed before parking
87+
// note: processNextEvent may lose unpark flag, so check if completed before parking
8888
if (isCompleted) break
8989
joinWorker.park(parkNanos / 1000L, true)
9090
}

kotlinx-coroutines-core/native/src/CoroutineContext.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import kotlin.native.concurrent.*
1010

1111
internal actual object DefaultExecutor : CoroutineDispatcher(), Delay {
1212

13-
private val delegate = WorkerDispatcher(name = "Dispatchers.Default")
13+
private val delegate = WorkerDispatcher(name = "DefaultExecutor")
1414

1515
override fun dispatch(context: CoroutineContext, block: Runnable) {
1616
checkState()

0 commit comments

Comments
 (0)