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

Function preAbort

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

Source from the content-addressed store, hash-verified

39 }
40
41 async function preAbort() {
42 const ac = new AbortController();
43 const { signal } = ac;
44 ac.abort();
45 const socket = tls.connect(connectOptions(signal));
46 assert.strictEqual(listenerCount(signal, 'abort'), 0);
47 await assertAbort(socket, 'preAbort');
48 }
49
50 async function tickAbort() {
51 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