Rust Tokio 异步任务优雅退出的常见模式

使用 tokio::sync::watch 与 select! 统一协调多个后台异步任务的关闭流程。

November 5, 2026 · 1 min · GoldPeak