Scoop API

scoop:scoop.asyncio:0.1.0

AsyncPty

interface AsyncPty

source · line 8
public
public interface AsyncPty : AsyncByteStream, AsyncCloseable

An owned asynchronous pseudoterminal with a single merged child output stream.

function wait

source · line 13
public
public suspend fun wait(): ExitStatus

Waits for the direct child. Keep reading concurrently to retain its terminal output.

function close

source · line 16
public
public override suspend fun close(): Unit
  • Overrides close · AsyncCloseable

Ends the session and reaps its direct child, discarding unread output if necessary.