(exit, event)
| 13 | // - E.g. Winston waits for logging up to 3s before calling |
| 14 | // `process.exit()` |
| 15 | export 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 | |
| 24 | const shouldExit = (exit, event) => { |
| 25 | if (!isExitEvent(event)) { |
no test coverage detected
searching dependent graphs…