Available on crate feature macros
only.
Expand description
Marks async function to be executed by the selected runtime. This macro
helps set up a Runtime
without requiring the user to use
Runtime directly.
#[madsim::main]
async fn main() {
println!("Hello world");
}