Expand description

ci-badge docs-badge crate-version

schedule-rs

A simple scheduling library inspired by Python’s schedule.

Sample usage

use schedule_rs::prelude::*;

let function = || {
    println!("Hello World!");
};
let task = Schedule::every().minute().run(function);
TaskRunner::one(task).run();

std::thread::park();

Modules

! Basic re-exports.

Structs

Base type for creating tasks.

Builder for time values of 1 (minute, hour, etc).

Builder for time values of more than one (minutes, hours, etc).

Builder step that allows you to set a limit and provide the function.

Builder step that allows you to set a limit and provide the function. Also allows to set the time of day.

A built task ready to be run by a runner.

Runner that runs built tasks.