(rontolisp) docs
← Functions

rontolisp:make-stream

(rontolisp:make-stream)

Creates a fresh open asynchronous stream. One value owns both the read and the write end: producers append chunks with rontolisp:stream-write and finish with rontolisp:stream-close; consumers take chunks with rontolisp:stream-read (each read yields a future) or drain the string chunks in one go with rontolisp:read-all.

Backend support

Guest-created streams (rontolisp:make-stream / rontolisp:stream-write) exist on the interpreter and the JVM backend today; the WASM backends reject them at compile time (a --component program's streams come from rontolisp:fetch / rontolisp:http-handler bodies).