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

Function isReadableEnded

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

Source from the content-addressed store, hash-verified

150
151// Have been push(null):d.
152function isReadableEnded(stream) {
153 if (!isReadableNodeStream(stream)) return null;
154 if (stream.readableEnded === true) return true;
155 const rState = stream._readableState;
156 if (!rState || rState.errored) return false;
157 if (typeof rState?.ended !== 'boolean') return null;
158 return rState.ended;
159}
160
161// Have emitted 'end'.
162function isReadableFinished(stream, strict) {

Callers

nothing calls this directly

Calls 1

isReadableNodeStreamFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…