async_tasks_state_map 1.0.1

A struct for recording execution status of async tasks with async methods.
Documentation
1
2
3
4
5
6
7
8
9
10
#[derive(Eq, PartialEq, Debug, Clone)]
pub enum TaskState {
    /// Running or pending.
    Working,
    Success,
    Failed,
    /// Never appear in map, only returned by query when the target task is not in map.
    NotFound,
    Revoking,
}