[][src]Attribute Macro utools::crontab

#[crontab]

Create a cron task

Syntax: #[crontab(cron= "*/5 * * * * *", desc = "executed every 5 second")]

#[crontab(cron = "*/5 * * * * *", desc = "每5s执行一次")]
fn test1() {
    println!("test1");
}

Attributes are the same as in crontab