when2task 0.3.1

high-performance library for executing async tasks with automatic dependency resolution and optimal parallelization.
Documentation
1
2
3
4
5
6
7
8
9
10
use derive_more::Display;

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Display, PartialOrd, Ord)]
pub struct TaskId(u128);

impl TaskId {
    pub fn generate() -> Self {
        TaskId(uuid::Uuid::new_v4().as_u128())
    }
}