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

Function tickAbort

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

Source from the content-addressed store, hash-verified

46 }
47
48 async function tickAbort() {
49 const ac = new AbortController();
50 const { signal } = ac;
51 setImmediate(() => ac.abort());
52 const socket = net.connect(socketOptions(signal));
53 assert.strictEqual(listenerCount(signal, 'abort'), 1);
54 await assertAbort(socket, 'tickAbort');
55 }
56
57 async function testConstructor() {
58 const ac = new AbortController();

Calls 6

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…