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

Method #rejectPendingWrites

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

Source from the content-addressed store, hash-verified

529 }
530
531 #rejectPendingWrites(error) {
532 while (this.#pendingWrites.length > 0) {
533 this.#pendingWrites.shift().reject(error);
534 }
535 }
536
537 #cleanup() {
538 if (this.#signal && this.#abortHandler) {

Callers 4

endMethod · 0.95
failMethod · 0.95
consumerReturnMethod · 0.95
consumerThrowMethod · 0.95

Calls 2

rejectMethod · 0.80
shiftMethod · 0.45

Tested by

no test coverage detected