如何把存放在struct上的函数指针move到线程中?

📝

内容提要

use std::{sync::Arc, time::Duration}; use tokio::sync::mpsc::{unbounded_channel, UnboundedReceiver, UnboundedSender}; #[tokio::main] async fn main() { let mut foo = Foo::new(); let cb =...

🏷️

标签

➡️

继续阅读