(timer: ReturnType<typeof setTimeout>)
| 373 | } |
| 374 | |
| 375 | function unrefTimer(timer: ReturnType<typeof setTimeout>): void { |
| 376 | const maybeUnref = (timer as { unref?: () => void }).unref |
| 377 | if (typeof maybeUnref === 'function') { |
| 378 | maybeUnref.call(timer) |
| 379 | } |
| 380 | } |
| 381 | |
| 382 | async function closeServer(serverToClose: Server): Promise<void> { |
| 383 | await new Promise<void>(resolve => { |
no test coverage detected