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

Function abortBoth

lib/internal/streams/iter/duplex.js:119–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 // see the error. This is an error-path shutdown, not a clean close.
118 if (signal) {
119 const abortBoth = () => {
120 const reason = signal.reason;
121 aWriter.fail(reason);
122 bWriter.fail(reason);
123 };
124 if (signal.aborted) {
125 abortBoth();
126 } else {

Callers 1

duplexFunction · 0.85

Calls 1

failMethod · 0.45

Tested by

no test coverage detected