class EventLoopSession
source · line 6public
public class EventLoopSession internal constructor(
/** The I/O service installed in the session root context. */
public val loop: EventLoop,
private val mailbox: LoopMailbox
)
An attached structured scope. The host must keep running until onClosed is delivered.
function requestClose
source · line 16public
public fun requestClose(): Unit
Stops accepting callbacks and schedules cancellation, without blocking this thread.
function post
source · line 14public
public fun post(block: CoroutineScope.() -> Unit): Boolean
Queues a callback in the attach context; false means the closure was not retained.
parameter block
source · line 14public
block: CoroutineScope.() -> Unit
property loop
source · line 8public
public val loop: EventLoop
get: public read-only
The I/O service installed in the session root context.
property isClosed
source · line 12public
public val isClosed: Boolean
get: public read-only
True after I/O cleanup and host watch removal, before onClosed is invoked.
getter get
source · line 12public
get(): Boolean