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

Function postAbort

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

Source from the content-addressed store, hash-verified

30 }
31
32 async function postAbort() {
33 const ac = new AbortController();
34 const { signal } = ac;
35 const socket = tls.connect(connectOptions(signal));
36 assert.strictEqual(listenerCount(signal, 'abort'), 1);
37 ac.abort();
38 await assertAbort(socket, 'postAbort');
39 }
40
41 async function preAbort() {
42 const ac = new AbortController();

Calls 5

abortMethod · 0.95
connectOptionsFunction · 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…