Scoop API

scoop:scoop.asyncio:0.1.0

PlatformEventLoop

class PlatformEventLoop

source · line 14
public
public class PlatformEventLoop internal constructor(
    config: LoopBlockingConfig
) : EventLoop

A single-use platform event loop. Run it from outside a Job and outside another event loop; I/O requires an active job in this loop's context.

function connectTcp

source · line 113
public
public override suspend fun connectTcp(host: OsString, port: Int, options: TcpConnectOptions): AsyncTcpStream

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

function openTty

source · line 56
public
public override suspend fun openTty(): AsyncTty

Opens an owned asynchronous terminal handle.