Timers

For a parallel timeout, use either of:

#![allow(unused)]
fn main() {
// Option 1
let timeout = whack::easy_timeout!({
    // Action
}, duration);
// Stop whenever desired
timeout.stop();

// Option 2
future_exec(async {
    let mut ticker = whack::ticker(whack::Duration::from_secs(10));
    ticker.tick().await;
});
}

There are variants appropriate for web animations, intervals and other functions included in the timer API.