macro_rules! timer {
($delay:expr, $func:path $(, $($args:tt)*)? ) => { ... };
}Expand description
timer Schedule a one-shot timer with an auto-generated label.
§Examples
timer!(Duration::from_secs(5), do_cleanup);timer!(Duration::ZERO, my_task, arg1, arg2);