Attribute Macro pyo3_asyncio::async_std::main

#[main]
Expand description

attributes Provides the boilerplate for the async-std runtime and runs an async fn as main Enables an async main function that uses the async-std runtime.

Examples

#[pyo3_asyncio::async_std::main]
async fn main() -> PyResult<()> {
    Ok(())
}