driveshaft 0.1.1

A minimal, high-performance thread pool for running synchronous tasks with per-thread context from async code.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Debug, Error)]
pub enum DriveShaftError {
    #[error("failed to send job to worker thread: channel is closed or full")]
    SendError,

    #[error("worker thread terminated before sending result")]
    RecvError,

    #[error("no available workers in pool")]
    NoWorkers,
}