EventLoop

interface EventLoop (source)

Platform and version requirements: JVM

Implemented by CoroutineDispatcher implementations that have event loop inside and can be asked to process next event from their event queue.

It may optionally implement Delay interface and support time-scheduled tasks. It is used by runBlocking to continue processing events when invoked from the event dispatch thread.

Functions

processNextEvent

abstract fun processNextEvent(): Long

Processes next event in this event loop.