recoverable-thread-pool 2.4.19

A thread pool that supports automatic recovery from panics, allowing threads to restart after a panic. Useful for resilient and fault-tolerant concurrency in network and web programming.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::*;

/// A job that can be executed by the thread pool.
pub type ThreadPoolJob = Box<dyn RecoverableFunction>;

/// Error type for failed job submissions.
pub type SendErrorBox = SendError<ThreadPoolJob>;

/// Result type for job submission operations.
pub type SendResult = Result<(), SendErrorBox>;