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
9
10
11
12
13
use thiserror::Error;

/// Errors that can occur in the task system.
#[derive(Error, Debug)]
pub enum TaskError {
    /// The frequency configuration is invalid.
    #[error("invalid frequency: {0}")]
    InvalidFrequency(String),

    /// The task was not found.
    #[error("task not found: {0}")]
    TaskNotFound(u64),
}