Attribute Macro async_attributes::main

source ·
#[main]
Expand description

Enables an async main function.

Examples

#[async_std::main]
async fn main() -> std::io::Result<()> {
    Ok(())
}