I note that you don't document /N syntax, but your examples do use a (nonstandard) 1/N syntax; its not clear what the expected inputs are, particularly as /N doesn't error.
sched
.add(Job::new_async("*/1 * * * *", |_uuid, _l| {
Box::pin(async {
println!("I run every 1 minute from by cron");
})
})?)
.await?;
sched
.add(Job::new_repeated_async(
Duration::from_secs(60),
|_uuid, _l| {
Box::pin(async {
println!("I run every 1 minute from Duration");
})
},
)?)
.await?;
sched.start().await?;```
results in 'I run every 1 minute' printed every 3-4 seconds.
<details>
<summary>A log</summary>
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from by cron
I run every 1 minute from Duration
I run every 1 minute from by cron
I run every 1 minute from by cron
</details>
I note that you don't document /N syntax, but your examples do use a (nonstandard) 1/N syntax; its not clear what the expected inputs are, particularly as /N doesn't error.