2023年10月24日

tokio 基础知识学习

摘要: 1. 创建 tokio Runtime 直接创建: //默认的工作线程数量将和CPU核数(虚拟核,即CPU线程数)相同 let rt = tokio::runtime::Runtime::new().unwrap(); //单线程 tokio::runtime::Builder::new_curre 阅读全文

posted @ 2023-10-24 23:24 Lemo_wd 阅读(212) 评论(0) 推荐(0) 编辑

导航