Expand description
Macros for another single-threaded blocking asynchronous executor for Rust.
§Examples
use std::{
error,
result,
};
#[traffic_light::main]
async fn main() -> result::Result<(), Box<dyn error::Error>> {
// ...
Ok(())
}Attribute Macros§
- main
- Expands
async fn main() {}into a call toExecutor::block_on - test