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

Function watchErrored

lib/internal/webstreams/readablestream.js:1586–1591  ·  view source on GitHub ↗
(stream, promise, action)

Source from the content-addressed store, hash-verified

1584 }
1585
1586 function watchErrored(stream, promise, action) {
1587 if (stream[kState].state === 'errored')
1588 action(stream[kState].storedError);
1589 else
1590 PromisePrototypeThen(promise, undefined, action);
1591 }
1592
1593 function watchClosed(stream, promise, action) {
1594 if (stream[kState].state === 'closed')

Callers 1

readableStreamPipeToFunction · 0.85

Calls 1

actionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…