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

Method endSync

lib/internal/streams/iter/push.js:624–629  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

622 }
623
624 endSync() {
625 const result = this.#queue.end();
626 if (result === -2) return -1; // Errored
627 if (result === -3) return -1; // Buffer not empty, can't wait
628 return result;
629 }
630
631 fail(reason) {
632 this.#queue.fail(arguments.length === 0 ? kNoFailReason : reason);

Callers 4

_finalFunction · 0.45
closeFunction · 0.45
pipeToSyncFunction · 0.45
pipeToFunction · 0.45

Calls 1

endMethod · 0.45

Tested by

no test coverage detected