interface EventLoopHost
source · line 9public
public interface EventLoopHost
Owner-thread, serial notifications from an external main loop.
function isCurrentThread
source · line 11public
public fun isCurrentThread(): Boolean
Whether this caller is the host thread that will deliver notifications.
function watch
source · line 13public
@Unsafe public fun watch(notification: EventLoopNotification, ready: () -> Unit): EventLoopWatch
Borrows without consuming or resetting. Never calls ready inline or retains a failed watch.
parameter notification
source · line 13public
notification: EventLoopNotification
parameter ready
source · line 13public
ready: () -> Unit