()
| 393 | function scheduleHistoricalSessionFullHydrate(callback: () => void): () => void { |
| 394 | let cancelled = false; |
| 395 | const run = () => { |
| 396 | if (cancelled) { |
| 397 | return; |
| 398 | } |
| 399 | callback(); |
| 400 | }; |
| 401 | |
| 402 | const requestIdleCallback = (globalThis as { |
| 403 | requestIdleCallback?: (callback: () => void, options?: { timeout?: number }) => number; |