use std::{future::Future, time::Duration};
mod async_job;
mod job;
pub use async_job::{AsyncCronJob, AsyncJob, AsyncJobScheduler};
pub use job::{CronJob, Job, JobScheduler};
pub trait Scheduler {
fn is_ready(&self) -> bool;
fn time_till_next_job(&self) -> Duration;
fn tick(&mut self);
}
pub trait AsyncScheduler {
fn is_ready(&self) -> bool;
fn time_till_next_job(&self) -> Duration;
fn tick(&mut self) -> impl Future<Output = ()> + Send;
}