TOKIO-SCHEDULER-RS

Yet Another JobScheduler

简体中文

Features

Example

```rust use tokioschedulerrs::job_scheduler::JobScheduler;

let scheduler = JobScheduler::defaultwithtimezone(chronotz::PRC); scheduler.registerjob(Box::new(HelloWorldJob)).unwrap(); scheduler.addjob("HelloWorldJob".into(),"*/5 * * * * * *".into(),None).await.unwrap(); scheduler.restorejobs().await.unwrap(); // This step is used to restore job execute status. // Please notice that you can implement you own job storage to store job status. scheduler.start().await.unwrap(); // start() returns a tokio::JoinHandle<()>, you can continue this program if you don't await it. ```

License

MIT