Skip to main content

Crate traffic_light_macros

Crate traffic_light_macros 

Source
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 to Executor::block_on
test