Attribute Macro cron

Source
#[cron]
Expand description

§Syntax

#[cron(1/10 * * * * *)]

§Attributes

  • "path": Raw literal string with path for which to register handler.

§Examples

#[cron("1/10 * * * * *")]
async fn example() {
    println!("hello world");
}