()
| 563 | * Reset the activity query cache (mainly for testing). |
| 564 | */ |
| 565 | export function resetActivityQueryCache(): void { |
| 566 | for (const timeoutId of gcTimeouts.values()) clearTimeout(timeoutId) |
| 567 | gcTimeouts.clear() |
| 568 | |
| 569 | for (const t of retryTimeouts.values()) clearTimeout(t) |
| 570 | retryTimeouts.clear() |
| 571 | retryCounts.clear() |
| 572 | |
| 573 | cache.entries.clear() |
| 574 | cache.keyListeners.clear() |
| 575 | cache.refCounts.clear() |
| 576 | cache.fetchingKeys.clear() |
| 577 | |
| 578 | inFlight.clear() |
| 579 | snapshotMemo.clear() |
| 580 | generations.clear() |
| 581 | } |
| 582 | |
| 583 | /** |
| 584 | * Set an error-only cache entry (for testing). |
no test coverage detected