[][src]Attribute Macro async_std::main

#[main]
This is supported on attributes only.

Enables an async main function.

Examples

This example is not tested
#[async_std::main]
async fn main() -> std::io::Result<()> {
    Ok(())
}