public fun EventLoop(thread: Thread, ...): CoroutineDispatcher = ... //should be: public fun EventLoop(thread: Thread, ...): EventLoop = ...