Manuscript Documentation
v2026.12.0

@std/io/forward.ms#

Import each required symbol with import Name from "@std/io/forward.ms".

forward Function#

Returns a writer that any thread may use for out, which only the calling thread may touch (a websocket or connection end, for example). Writes queue in a pipe of capacity values, and a task on this thread copies them to out, so a state owner on another thread can push to it. Closing the writer ends the copy and then closes out.

Manuscript
fn forward[T](move out WriteStream[T], capacity Int = 16) WriteStream[T] { ... }