MCPcopy Create free account
hub / github.com/nodejs/node / onAbort

Method onAbort

lib/internal/fs/recursive_watch.js:269–272  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

267 });
268 } : (resolve, reject) => {
269 const onAbort = () => {
270 this.close();
271 reject(new AbortError(undefined, { cause: signal.reason }));
272 };
273 if (signal.aborted) return onAbort();
274 kResistStopPropagation ??= require('internal/event_target').kResistStopPropagation;
275 signal.addEventListener('abort', onAbort, { __proto__: null, once: true, [kResistStopPropagation]: true });

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
rejectFunction · 0.50

Tested by

no test coverage detected