rontolisp:stream-close
(rontolisp:stream-close stream)
Closes the write end of an asynchronous stream and returns nil. Buffered
chunks stay readable; once they are drained,
rontolisp:stream-read observes end of stream
(nil). Closing an already-closed stream is a no-op. A
rontolisp:stream-write after the close signals
an error.
Backend support
Asynchronous streams exist on the interpreter, the JVM backend and -- for the
request/response body streams rontolisp:fetch / rontolisp:http-handler
produce -- the --component WASM backend. A Preview 1 WASM module can hold a
stream value only when a host-backed body gives it one; where none can exist,
rontolisp:streamp answers nil and rontolisp:stream-read /
rontolisp:stream-close signal an error when called.