Scoop API

scoop:scoop.asyncio:0.1.0

EventLoop

interface EventLoop

source · line 13
public
public interface EventLoop

The suspending filesystem, timer, resolver, TCP, UDP, and TTY service installed for a structured coroutine scope. Resources and operations belong to their creating loop.

function openTty

source · line 43
public
public suspend fun openTty(): AsyncTty

Opens an owned asynchronous terminal handle.

function connectTcp

source · line 94
public
public suspend fun connectTcp(host: OsString, port: Int, options: TcpConnectOptions = tcpConnectOptions()): AsyncTcpStream

Connects to an IP endpoint, or resolves and races candidates using the supplied host connection options. The returned stream has independent ownership.

property executor

source · line 19
public
public val executor: CoroutineExecutor

get: public read-only

Runs a single-use native payload on a worker and waits for completion before releasing its active borrow.

The active owner executor. Access before startup or after its termination is rejected.

function schedule

source · line 29
public
public fun schedule(duration: Duration, completion: (Throwable?) -> Unit): Disposable

Schedules one owner-thread notification without creating a coroutine. None means elapsed; an error reports timer failure. Disposal or current-job cancellation suppresses an unselected notification. The callback does not inherit Context and must not block the owner.