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

Function cancel1Algorithm

lib/internal/webstreams/readablestream.js:1811–1819  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

1809 }
1810
1811 function cancel1Algorithm(reason) {
1812 canceled1 = true;
1813 reason1 = reason;
1814 if (canceled2) {
1815 const compositeReason = [reason1, reason2];
1816 cancelPromise.resolve(readableStreamCancel(stream, compositeReason));
1817 }
1818 return cancelPromise.promise;
1819 }
1820
1821 function cancel2Algorithm(reason) {
1822 canceled2 = true;

Callers

nothing calls this directly

Calls 2

readableStreamCancelFunction · 0.85
resolveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…