chronos-scheduler-rs
A Rust crate for Job Scheduler. This Job Scheduler is simple.
Installation
Add the following configuration to Cargo.toml.
[]
= "1.0.XXX"
Usage
// Create a new job scheduler
let mut job_scheduler = new;
// Set the interval for the scheduler's tick to 1 minute
let tick_interval = minutes;
// Initialize a counter to track the number of job executions
let mut counter = 0;
// Define a new job that runs every minute
let job = new;
// Add the defined job to the job scheduler
job_scheduler.add_job;
// Enter an infinite loop to continuously check and run scheduled jobs
loop