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

Function checkAborted

lib/fs.js:379–385  ·  view source on GitHub ↗
(signal, callback)

Source from the content-addressed store, hash-verified

377}
378
379function checkAborted(signal, callback) {
380 if (signal?.aborted) {
381 callback(new AbortError(undefined, { cause: signal.reason }));
382 return true;
383 }
384 return false;
385}
386
387/**
388 * Asynchronously reads the entire contents of a file.

Callers 4

readFileFunction · 0.70
statFunction · 0.70
writeFileFunction · 0.70
appendFileFunction · 0.70

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…