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

Function onexit

test/async-hooks/test-tlswrap.js:131–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129process.on('exit', onexit);
130
131function onexit() {
132 hooks.disable();
133 hooks.sanityCheck('TLSWRAP');
134
135 checkInvocations(svr, { init: 1, before: 2, after: 2 },
136 'server: when process exits');
137 checkInvocations(client, { init: 1, before: 3, after: 3 },
138 'client: when process exits');
139}

Callers

nothing calls this directly

Calls 2

sanityCheckMethod · 0.80
disableMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…