Scoop API

scoop:scoop.asyncio:0.1.0

EventLoopSession

class EventLoopSession

source · line 6
public
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 16
public
public fun requestClose(): Unit

Stops accepting callbacks and schedules cancellation, without blocking this thread.

property loop

source · line 8
public
public val loop: EventLoop

get: public read-only

The I/O service installed in the session root context.