logo

Attribute Macro async_std::main

source · []
#[main]
Available on attributes only.
Expand description

Enables an async main function.

Examples

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