Skip to content

Commit

Permalink
Rename DefaultExecutor backing working accodring to the name of the o…
Browse files Browse the repository at this point in the history
…uter class (#3040)
  • Loading branch information
qwwdfsad committed Nov 23, 2021
1 parent 3574c2f commit 773ab97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kotlinx-coroutines-core/native/src/Builders.kt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private class BlockingCoroutine<T>(
} else {
parkNanos = Long.MAX_VALUE
}
// note: process next even may loose unpark flag, so check if completed before parking
// note: processNextEvent may lose unpark flag, so check if completed before parking
if (isCompleted) break
joinWorker.park(parkNanos / 1000L, true)
}
Expand Down
2 changes: 1 addition & 1 deletion kotlinx-coroutines-core/native/src/CoroutineContext.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import kotlin.native.concurrent.*

internal actual object DefaultExecutor : CoroutineDispatcher(), Delay {

private val delegate = WorkerDispatcher(name = "Dispatchers.Default")
private val delegate = WorkerDispatcher(name = "DefaultExecutor")

override fun dispatch(context: CoroutineContext, block: Runnable) {
checkState()
Expand Down

0 comments on commit 773ab97

Please sign in to comment.