mvniekerk / tokio-cron-scheduler

Schedule tasks on Tokio using cron-like annotation
Apache License 2.0
529 stars 59 forks source link

Example doesn't work (#37 continued?) #39

Closed tobymurray closed 1 year ago

tobymurray commented 1 year ago

The example was updated to await JobScheduler::new(), but this returns a Result so the current example code:

    let mut sched = JobScheduler::new().await;

    sched.add...

doesn't compile.

seungjin commented 1 year ago
no method named `add` found for enum `Result` in the current scope
sueskind commented 1 year ago

46 fixes the example in README