()
| 664 | } |
| 665 | |
| 666 | function stopStreaming(): void { |
| 667 | state.streaming = false; |
| 668 | if (state.streamingIntervalId !== null) { |
| 669 | clearInterval(state.streamingIntervalId); |
| 670 | state.streamingIntervalId = null; |
| 671 | } |
| 672 | |
| 673 | // Update display with final count when streaming stops |
| 674 | if (state.totalPointsGenerated > 0) { |
| 675 | updateTotalPointsDisplay(state.totalPointsGenerated); |
| 676 | } |
| 677 | } |
| 678 | |
| 679 | function handleClear(): void { |
| 680 | stopStreaming(); |
no test coverage detected