MCPcopy Create free account
hub / github.com/ehmicky/log-process-errors / exitProcess

Function exitProcess

src/exit.js:15–22  ·  view source on GitHub ↗
(exit, event)

Source from the content-addressed store, hash-verified

13// - E.g. Winston waits for logging up to 3s before calling
14// `process.exit()`
15export const exitProcess = (exit, event) => {
16 if (!shouldExit(exit, event)) {
17 return
18 }
19
20 process.exitCode = EXIT_CODE
21 setTimeout(forceExitProcess, EXIT_TIMEOUT).unref()
22}
23
24const shouldExit = (exit, event) => {
25 if (!isExitEvent(event)) {

Callers 1

handleEventFunction · 0.90

Calls 1

shouldExitFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…