taskqueue 0.1.1

Parallel execution of the task queue with the ability to add new tasks inside the running tasks
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{task::Task, worker::WorkerId};

pub enum ControlToWorkerEvent {
    Stop,
    KeepAlive,
    RunTask(Task),
}

pub enum WorkerToControlEvent {
    Complete(WorkerId),
    AddTask(Task),
    AbortTaskChain,
    // ControlEvents
    Stop,
}