|
|
|
|
|
by killercup
956 days ago
|
|
Because this code block looks quite complex, I want to add that it can also be just smol::block_on(async {
println!("I'm async!");
});
(I thought tokio had a helper like this too but could only find `tokio::runtime::Runtime::new().unwrap().block_on(async { println!("I'm async!"); });`.) |
|