@type {() => Promise }
()
| 41 | |
| 42 | /** @type {() => Promise<void>} */ |
| 43 | async function restart() { |
| 44 | await stop(true); |
| 45 | await start(); |
| 46 | } |
| 47 | |
| 48 | /** @type {(code: number, restart?: boolean) => Promise<void>} */ |
| 49 | async function exit(code, restart = false) { |