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
11
12
use crate::TaskId;
use thiserror::Error;
use tokio::task::JoinError;

#[derive(Debug, Error)]
pub enum ExecutionError {
    #[error("Task {0} failed: {1}")]
    TaskError(TaskId, String),

    #[error("Join error: {0}")]
    JoinError(#[from] JoinError),
}