pub fn timer_set(
    deadline: Duration,
    callback: Box<dyn FnOnce(Duration) + Send + Sync>
)
Expand description

Set a new timer. After deadline, the callback will be called. TODO: use Instant as the type of deadline.