minitimer 0.1.7

A mini timer of delayed tasks. Only asynchronous tasks are possible on tokio runtime, and dynamic add/cancel/remove is supported.
Documentation
1
2
3
4
5
6
7
8
/// Events generated by the timer system.
#[derive(Debug)]
pub enum TimerEvent {
    /// Generated every second to indicate a tick has occurred.
    Tick,
    /// Generated when the timer is stopped.
    StopTimer,
}