Simple scheduling tool for running tasks at fixed intervals.
Handles all threads for scheduling and running tasks. Note that callbacks
passed in must be able to execute asynchronously, and therefore require
Send. They must also have a
use std::time::Duration; let mut planner = periodic::Planner::new(); planner.add( || println!("every three seconds"), periodic::Every::new(Duration::from_secs(3)), ); planner.start();
./examples for more detailed usage.
Single time occuring after a fixed duration
Times occuring at fixed intervals
Schedules callbacks to be called at specified times
Cast into an