Scoop API

scoop:scoop.asyncio:0.1.0

scoop.asyncio

API

  • interface AsyncByteSink

    A suspending byte sink accepting short writes and an explicit flush operation.

  • interface AsyncByteSource

    A suspending byte source. A positive-size read returns the number written to the buffer; zero means EOF, and short reads are permitted.

  • interface AsyncByteStream

    Combines suspending byte input and output without prescribing ownership or half-close behavior.

  • interface AsyncCloseable

    A resource whose cleanup may suspend until active native operations and borrows have finished.

  • interface AsyncDirectoryEntries

    An owned asynchronous directory cursor. Close it even when iteration ends early.

  • interface AsyncFile

    An owned asynchronous file with a shared logical position, explicit seek, truncation, and durability operations.

  • interface AsyncPty

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

  • class AsyncRuntime

    Runs coroutines and I/O on the same managed workers, sharing one logical event loop.

  • class AsyncRuntimeBuilder

    Configures one I/O runtime without starting any threads.

  • class AsyncSocks5Tunnel

    An owned negotiated SOCKS5 transport exposing its tunneled bytes as an asynchronous stream.

  • interface AsyncTcpListener

    An owned TCP listening socket associated with one event loop.

  • interface AsyncTcpStream

    An owned connected TCP byte stream with independent input and output and explicit output half-close.

  • interface AsyncTty

    An owned asynchronous terminal handle with byte output, input/resize events, and raw-mode control.

  • interface AsyncUdpSocket

    An owned datagram socket preserving message boundaries; each receive describes one datagram.

  • 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.

  • class EventLoopBuilder

    Configures the managed blocking workers used by a single event-loop lifetime.

  • class EventLoopSession

    An attached structured scope. The host must keep running until onClosed is delivered.

  • class IoClosedException

    Reports an operation attempted on a closed I/O resource.

  • class PlatformEventLoop

    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.

  • class ReadLimitException

    Reports that collection would exceed an explicit input byte limit.

  • enum Socks5Address

    A SOCKS5 destination or bound endpoint represented by a domain name/port or an IP socket address.

  • class Socks5Credentials

    Copied username and password bytes for SOCKS5 username/password authentication.

  • class Socks5Exception

    Reports a SOCKS5 negotiation failure with phase and optional proxy reply code.

  • enum Socks5Phase

    The SOCKS5 negotiation phase responsible for a failure.

  • enum Socks5Resolution

    Chooses which side resolves a SOCKS5 domain destination.

  • class TcpConnectEvent

    A phase boundary recorded at a monotonic time mark.

  • enum TcpConnectEventKind

    The start or completion boundary of a traced phase.

  • class TcpConnectException

    All usable TCP candidates failed; retains individual connection and resolution failures.

  • class TcpConnectOptions

    Controls staggered address resolution and connection racing, concurrency, optional phase/overall deadlines, and trace delivery.

  • class TcpConnectOptionsBuilder
  • enum TcpConnectPhase

    Distinguishes name resolution from connecting to an address.

  • class TcpConnectTimeoutException

    The connection procedure exceeded its configured limit; retains completed attempt and resolution failures.

  • struct TcpConnectionFailure

    A failed concrete address attempt and its original exception.

  • struct TcpResolutionFailure

    A failed address-family resolution and its original exception.

  • class TcpResolutionTimeoutException

    Address resolution exceeded its configured time limit for the specified family.

  • struct TemporaryFile

    A newly created temporary path paired with its open asynchronous file. Closing the handle does not delete the path.

  • enum TtyRead

    The outcome of a terminal read: bytes, resize notification, end of input, or timeout.

  • struct TtySize

    Terminal dimensions in character cells and optional platform-reported pixel dimensions.

  • function asyncRuntime

    Creates a single-use runtime from a configuration snapshot.

  • function copy
  • function copyTo

    Copies until EOF through a positive-size bounded buffer and returns the transferred byte count. Both endpoints remain borrowed.

  • function currentEventLoop

    Returns the EventLoop supplied by the current context binding.

  • function eventLoop

    Creates a single-use I/O owner from a configuration snapshot, without starting threads.

  • function readAllBytes

    Collects the remaining input until EOF. The limited overload throws ReadLimitException if input exceeds maxBytes; the unlimited overload has no explicit byte limit.

  • function readFully

    Loops until count bytes have been read. Premature EOF throws UnexpectedEofException; an invalid count is rejected before transfer.

  • function readInto

    Reads into the buffer's entire writable region, allowing a short read.

  • function tcpConnectOptions

    Configures one complete value; execution remains explicit.

  • function useAsync

    Runs the block and always awaits resource close. If the body and cleanup both fail, ResourceUseException retains both errors.

  • function writeFrom

    Writes from the buffer's entire readable region, allowing a short write.

  • function writeFully

    Loops until count bytes have been accepted. A zero-progress write throws WriteZeroException.