refactor: use native async discovery and simplify shared state

This commit is contained in:
手瓜一十雪 committed 2026-10-18 12:57:18 +08:00
1 parent 5032cbb8c0
commit 4e2b6b1200
87 files changed
+2063 -2002

No files matched your search

@@ -37,7 +37,7 @@ export function waitPttTransText(key: string, timeoutMs: number): Promise<string
reject(new Error('语音转文字超时(未收到结果推送)'));
}, timeoutMs);
timer.unref?.();
timer.unref();
pending.set(key, { resolve, reject, timer });
});
}