This is a library, with an API inspired by timer.rs, for scheduling jobs that run synchronously on a background thread.
Example:
```rust use std::time::Duration; use synchronous_timer::Timer;
fn main() { let mut timer = Timer::new(); timer .schedulein(Duration::fromsecs(5), || { println!("I will run on the background thread in 5 seconds") }) .detach(); timer.scheduleimmediately(|| println!("I will run on the background thread right now")); let handle = timer.schedulein(Duration::fromsecs(1), || println!("I will never run")); drop(handle); std::thread::sleep(Duration::fromsecs(6)); } ```
This work is licensed under the ISC license, a copy of which can be found in LICENSE.txt.