Esc

read_session

procedureextensionexperimentalsince 0.36.1Source
  • macOS: read_session works on macOS
  • Linux: read_session works on Linux
  • Windows: read_session works on Windows
  • Wasm: read_session works on Wasm

Reads available output: positive byte count, zero for would-block, -1 for EOF/error. The caller owns buffer. poll_exit separately reports the child's exit status.

Signature

read_session :: (session: *Session, buffer: [] u8) -> int

See also