nonClosingWritableStream
nonClosingWritableStream(
stream):WritableStream<string>
Defined in: packages/node/src/stream/non-closing-writable-stream.ts:14
Create a WritableStream<string> that wraps a Node Writable but never
closes it.
Writable.toWeb(stream).getWriter().close() ends the underlying stream,
which never resolves for process.stdout/process.stderr on a TTY (a
well-known Node limitation — closing a WHATWG-wrapped TTY writable hangs
forever, reproduced with nothing more than Writable.toWeb(process.stdout) +
writer.close()). Use this instead of Writable.toWeb directly for any
stream whose lifecycle isn’t the caller’s to end.
Parameters
Section titled “Parameters”stream
Section titled “stream”Writable
Returns
Section titled “Returns”WritableStream<string>