Attribute Macro pollster_macro::main
source · #[main]
Expand description
Uses [pollster::block_on
] to enable async fn main() {}
.
Example
#[pollster::main]
async fn main() {
let my_fut = async {};
my_fut.await;
}
#[main]
Uses [pollster::block_on
] to enable async fn main() {}
.
#[pollster::main]
async fn main() {
let my_fut = async {};
my_fut.await;
}