cherry-studio/src/main/apiServer/utils
SuYao 61aae7376a
fix: add dispose method to prevent abort listener leak (#12269)
* fix: add dispose method to prevent abort listener leak

Add dispose() method to StreamAbortController that explicitly removes
the abort event listener when stream ends normally. Previously, the
listener would only be removed when abort was triggered ({ once: true }),
but if the stream completed normally without abort, the listener would
remain attached until garbage collection.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* chore: format code

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-08 17:55:15 +08:00
..
createStreamAbortController.ts fix: add dispose method to prevent abort listener leak (#12269) 2026-01-08 17:55:15 +08:00
index.ts feat: add silicon provider support for Anthropic API compatibility (#11468) 2025-11-26 19:19:34 +08:00
mcp.ts chore[lint]: add import type lint (#11091) 2025-11-01 10:40:02 +08:00