A library to easily schedule an FnOnce to run sometime in the future. It is guaranteed that the task will not run before the given time, but due to delays may run slightly after.
The timer uses a single thread to schedule and run all tasks. A long-running task will delay other tasks from running.
extern crate task_scheduler; use Scheduler; let scheduler = new; //pick some time in the future let time = now + from_secs; scheduler.after_instant; scheduler.after_duration;