Skip to content

Commit 6396440

Browse files
committed
Restore BlockingEventLoop class name for runBlocking event loop impl
It is a name people are used to seen then they example the coroutineContext inside runBlocking. The fact that it is also used for unconfined now is Ok as it is not directly exposed.
1 parent 5a3dd35 commit 6396440

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/kotlinx-coroutines-core/src/EventLoop.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ internal abstract class EventLoopImplBase: EventLoop(), Delay {
8383
override fun shutdown() {
8484
// Clean up thread-local reference here -- this event loop is shutting down
8585
ThreadLocalEventLoop.resetEventLoop()
86-
// We should signal that ThreadEventLoop should not accept any more tasks
86+
// We should signal that this event loop should not accept any more tasks
8787
// and process queued events (that could have been added after last processNextEvent)
8888
isCompleted = true
8989
closeQueue()
@@ -311,8 +311,8 @@ internal abstract class EventLoopImplBase: EventLoop(), Delay {
311311
}
312312
}
313313

314-
internal class ThreadEventLoop(
314+
internal class BlockingEventLoop(
315315
override val thread: Thread
316316
) : EventLoopImplBase()
317317

318-
internal actual fun createEventLoop(): EventLoop = ThreadEventLoop(Thread.currentThread())
318+
internal actual fun createEventLoop(): EventLoop = BlockingEventLoop(Thread.currentThread())

0 commit comments

Comments
 (0)