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

Function cancel2Algorithm

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

Source from the content-addressed store, hash-verified

1819 }
1820
1821 function cancel2Algorithm(reason) {
1822 canceled2 = true;
1823 reason2 = reason;
1824 if (canceled1) {
1825 const compositeReason = [reason1, reason2];
1826 cancelPromise.resolve(readableStreamCancel(stream, compositeReason));
1827 }
1828 return cancelPromise.promise;
1829 }
1830
1831 branch1 =
1832 createReadableStream(nonOpStart, pullAlgorithm, cancel1Algorithm);

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…