()
| 200 | // Fallback polling if events API not ready |
| 201 | const start = Date.now(); |
| 202 | const tick = () => { |
| 203 | if (isReady() || Date.now() - start > timeoutMs) return fn(); |
| 204 | setTimeout(tick, 60); |
| 205 | }; |
| 206 | return tick(); |
| 207 | } |
| 208 | let done = false; |
no test coverage detected