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

Function tickUnref

test/parallel/test-worker-message-port-transfer-closed.js:52–55  ·  view source on GitHub ↗
(n, fn)

Source from the content-addressed store, hash-verified

50testBothClosed();
51
52function tickUnref(n, fn) {
53 if (n === 0) return fn();
54 setImmediate(tickUnref, n - 1, fn).unref();
55}
56
57tickUnref(10, common.mustNotCall('The communication channel is still open'));

Calls 3

fnFunction · 0.70
setImmediateFunction · 0.50
unrefMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…