How to run an asynchronous task from a non-main thread in Tokio?
问题 use std::thread; use tokio::task; // 0.3.4 #[tokio::main] async fn main() { thread::spawn(|| { task::spawn(async { println!("123"); }); }) .join(); } When compiling I get a warning: warning: unused `std::result::Result` that must be used --> src/main.rs:6:5 | 6 | / thread::spawn(|| { 7 | | task::spawn(async { 8 | | println!("123"); 9 | | }); 10 | | }) 11 | | .join(); | |____________^ | = note: `#[warn(unused_must_use)]` on by default = note: this `Result` may be an `Err` variant, which should