()
| 289 | }); |
| 290 | } |
| 291 | function _interruptAllSleeps() { |
| 292 | if (_activeSleeps.size === 0) return; |
| 293 | // Snapshot first because resolvers mutate the set as they run. |
| 294 | const finishers = Array.from(_activeSleeps); |
| 295 | for (const fn of finishers) { |
| 296 | try { fn(); } catch (_) {} |
| 297 | } |
| 298 | } |
| 299 | |
| 300 | // Round-6 (§19.5): heartbeat-internal wake recovery (drainPool + |
| 301 | // pokeHeartbeat + SSE restart + self-driving-poll re-arm) lives in |
no test coverage detected