Sign in

    moonbitlang/async/pipe does not have a README file

    PipeRead

    type PipeRead

    The read end of a pipe
    impl Reader for PipeRead

    PipeRead::close

    fn PipeRead::close(self : PipeRead) -> Unit

    PipeRead::drop

    async fn PipeRead::drop(self : PipeRead, len : Int) -> Int

    PipeRead::fd

    fn PipeRead::fd(self : PipeRead) -> Int

    PipeRead::read

    async fn PipeRead::read(self : PipeRead, dst : FixedArray[Byte], offset? : Int, max_len? : Int) -> Int

    PipeRead::read_all

    async fn PipeRead::read_all(self : PipeRead) -> &
    Data

    PipeRead::read_exactly

    async fn PipeRead::read_exactly(self : PipeRead, len : Int) -> Bytes

    PipeRead::read_some

    async fn PipeRead::read_some(self : PipeRead, max_len? : Int) -> Bytes?

    PipeRead::read_until

    async fn PipeRead::read_until(self : PipeRead, sep : StringView) -> String?

    PipeWrite

    type PipeWrite

    The write end of a pipe
    impl Writer for PipeWrite

    PipeWrite::close

    fn PipeWrite::close(self : PipeWrite) -> Unit

    PipeWrite::fd

    fn PipeWrite::fd(self : PipeWrite) -> Int

    PipeWrite::write

    async fn PipeWrite::write(self : PipeWrite, data : &
    Data
    ) -> Unit

    PipeWrite::write_once

    async fn PipeWrite::write_once(self : PipeWrite, buf : Bytes, offset~ : Int, len~ : Int) -> Int

    PipeWrite::write_reader

    async fn PipeWrite::write_reader(self : PipeWrite, reader : &
    Reader
    ) -> Unit

    pipe

    fn pipe() -> (PipeRead, PipeWrite) raise

    Create a pipe using pipe(2) system call. Return the read end and write end of the pipe.

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io