cronox 0.0.2

A elegant and efficient asynchronous scheduler for Rust
Documentation
use cronox::facade::Schedule;

#[tokio::main]
async fn main() {
    Schedule::call(async || {
        println!("Every second! Time: {}", chrono::Utc::now());
    })
    .every_second();

    Schedule::call(async || {
        println!("Every five seconds! Time: {}", chrono::Utc::now());
    })
    .every_seconds(5);

    Schedule::call(async || {
        println!("Every minute! Time: {}", chrono::Utc::now());
    });

    Schedule::command("ls", vec!["-l"]).every_ten_seconds();

    Schedule::run().await;
}