(fn: () => void)
| 145 | } |
| 146 | |
| 147 | const settle = (fn: () => void) => { |
| 148 | if (settled) return |
| 149 | settled = true |
| 150 | cleanup() |
| 151 | fn() |
| 152 | } |
| 153 | |
| 154 | if (signal?.aborted) { |
| 155 | // `destroy()` with no reason emits 'close', not an unhandled 'error'. |
no test coverage detected