()
| 52 | const killSet = new Set<() => void>(); |
| 53 | |
| 54 | export async function gracefullyCloseAll() { |
| 55 | await Promise.all(Array.from(gracefullyCloseSet).map(gracefullyClose => gracefullyClose().catch(e => {}))); |
| 56 | } |
| 57 | |
| 58 | export function gracefullyProcessExitDoNotHang(code: number, onExit?: () => Promise<void>) { |
| 59 | // Force exit after 30 seconds. |
no test coverage detected
searching dependent graphs…