This module exposes functionality to create receivers that receive notifications after a specified period of time or at a specified frequency.
Examples
At its simplest, oneshot_ms can be used to put the thread to sleep. Unlike with std::thread::sleep, this could be used with Select to be waiting for one of several Receivers to fire.
use oneshot_ms;
let timer = oneshot_ms;
timer.recv.unwrap;
println!;
Periodic Receivers can be created using periodic_ms.
use periodic_ms;
let tick = periodic_ms;
sleep_ms;
let tock = periodic_ms;
loop