fix: 补齐审查清单里还没落地的交互和代理复测

This commit is contained in:
2026-11-16 16:17:31 +08:00
parent 58b3dedb2a
commit 50a8ae2e27
19 changed files with 444 additions and 192 deletions
+10
View File
@@ -28,6 +28,16 @@ _last_flush: dict[str, float] = {}
def attach_loop(loop: asyncio.AbstractEventLoop) -> None:
global _loop
if _loop is loop:
return
for handle in list(_pending.values()):
handle.cancel()
_pending.clear()
_inflight.clear()
_dirty.clear()
_urgent.clear()
_last_flush.clear()
_clients.clear()
_loop = loop