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

Function preAbort

test/parallel/test-net-connect-abort-controller.js:39–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 }
38
39 async function preAbort() {
40 const ac = new AbortController();
41 const { signal } = ac;
42 ac.abort();
43 const socket = net.connect(socketOptions(signal));
44 assert.strictEqual(listenerCount(signal, 'abort'), 0);
45 await assertAbort(socket, 'preAbort');
46 }
47
48 async function tickAbort() {
49 const ac = new AbortController();

Calls 5

abortMethod · 0.95
socketOptionsFunction · 0.85
listenerCountFunction · 0.85
assertAbortFunction · 0.85
connectMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…