MCPcopy Index your code
hub / github.com/nodejs/node / isWritableEnded

Function isWritableEnded

lib/internal/streams/utils.js:129–136  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

127
128// Have been end():d.
129function isWritableEnded(stream) {
130 if (!isWritableNodeStream(stream)) return null;
131 if (stream.writableEnded === true) return true;
132 const wState = stream._writableState;
133 if (wState?.errored) return false;
134 if (typeof wState?.ended !== 'boolean') return null;
135 return wState.ended;
136}
137
138// Have emitted 'finish'.
139function isWritableFinished(stream, strict) {

Callers 4

closeFunction · 0.85
isWritableFunction · 0.85

Calls 1

isWritableNodeStreamFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…