[记]tokio学习
摘要:
spawn_blocking use std::thread; use std::time; use tokio::time::{sleep,Duration}; fn blocking_call() -> String{ for idx in 0..5{ thread::sleep(time::D 阅读全文
posted @ 2024-06-13 10:47 戳人痛处 阅读(29) 评论(0) 推荐(0) 编辑