Skip to content

Commit dff1531

Browse files
committed
Fix wrong refactoring in EventLoopCommon
1 parent a67305e commit dff1531

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,11 @@ internal abstract class EventLoopImplBase: EventLoopImplPlatform(), Delay {
287287
return dequeue()
288288
}
289289

290+
override fun processNextEvent(): Long {
291+
dequeueNextTask()?.run()
292+
return nextTime
293+
}
294+
290295
public final override fun dispatch(context: CoroutineContext, block: Runnable) = enqueue(block)
291296

292297
public fun enqueue(task: Runnable) {

0 commit comments

Comments
 (0)