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

Function onexit

test/async-hooks/test-getaddrinforeqwrap.js:36–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34process.on('exit', onexit);
35
36function onexit() {
37 hooks.disable();
38 hooks.sanityCheck('GETADDRINFOREQWRAP');
39
40 const as = hooks.activitiesOfTypes('GETADDRINFOREQWRAP');
41 const a = as[0];
42 checkInvocations(a, { init: 1, before: 1, after: 1, destroy: 1 },
43 'when process exits');
44}

Callers

nothing calls this directly

Calls 3

sanityCheckMethod · 0.80
activitiesOfTypesMethod · 0.80
disableMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…