( timer: ReturnType<typeof setTimeout>, )
| 1456 | }; |
| 1457 | |
| 1458 | function isUnrefableTimer( |
| 1459 | timer: ReturnType<typeof setTimeout>, |
| 1460 | ): timer is ReturnType<typeof setTimeout> & UnrefableTimer { |
| 1461 | return ( |
| 1462 | typeof timer === "object" && |
| 1463 | timer !== null && |
| 1464 | "unref" in timer && |
| 1465 | typeof timer.unref === "function" |
| 1466 | ); |
| 1467 | } |
| 1468 | |
| 1469 | function scheduleRenderProcessExit(): void { |
| 1470 | const timer = setTimeout(() => process.exit(0), 100); |
no outgoing calls
no test coverage detected