README

moonbitlang/async/stdio does not have a README file

#
Input

type Input

impl Reader for Input

#
Input::fd

fn Input::fd(self : Input) -> Int raise

Return the file descriptor of an input channel.

If the initialization of the input channel failed, for example when stdin does not exist (Windows) or is not a valid fd (Unix-like), This method will fail with error. So .fd() can be used as a way to tell if stdin is valid.

#
Output

type Output

impl Writer for Output

#
Output::fd

fn Output::fd(self : Output) -> Int raise

Return the file descriptor of an output channel.

If the initialization of the output channel failed, for example when stdout does not exist (Windows) or is not a valid fd (Unix-like), This method will fail with error. So .fd() can be used as a way to tell if stdout/stderr is valid.

#
stderr

let stderr : Output

The standard error channel.

If stderr does not exist or is invalid, all operations on stderr will immediately fail with error.

#
stdin

let stdin : Input

The standard input channel.

If stdin does not exist or is invalid, all operations on stdin will immediately fail with error.

#
stdout

let stdout : Output

The standard output channel.

If stdout does not exist or is invalid, all operations on stdout will immediately fail with error.

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io