MCPcopy Create free account
hub / github.com/nodejs/node / #rejectPendingReads

Method #rejectPendingReads

lib/internal/streams/iter/push.js:525–529  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

523 }
524
525 #rejectPendingReads(error) {
526 while (this.#pendingReads.length > 0) {
527 this.#pendingReads.shift().reject(error);
528 }
529 }
530
531 #rejectPendingWrites(error) {
532 while (this.#pendingWrites.length > 0) {

Callers 2

failMethod · 0.95
consumerThrowMethod · 0.95

Calls 2

rejectMethod · 0.80
shiftMethod · 0.45

Tested by

no test coverage detected