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

Function postAbort

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

Source from the content-addressed store, hash-verified

28 });
29
30 async function postAbort() {
31 const ac = new AbortController();
32 const { signal } = ac;
33 const socket = net.connect(socketOptions(signal));
34 assert.strictEqual(listenerCount(signal, 'abort'), 1);
35 ac.abort();
36 await assertAbort(socket, 'postAbort');
37 }
38
39 async function preAbort() {
40 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…