#[main]Expand description
Marks an async function as the main entry point.
§Usage
ⓘ
use embedded_executor::PollingIo;
#[embedded_executor::main(PollingIo)]
async fn main(executor: _, io: _) -> std::io::Result<()> {
// Your async code here
executor.spawn(async { /* ... */ });
Ok(())
}The IO type must implement embedded_executor::runtime::Runtime.