Skip to main content

Crate qubit_thread_pool

Crate qubit_thread_pool 

Source
Expand description

§Qubit Thread Pool

Dynamic and fixed-size thread pool executor services.

Re-exports§

pub use dynamic::ThreadPool;
pub use dynamic::ThreadPoolBuilder;
pub use fixed::FixedThreadPool;
pub use fixed::FixedThreadPoolBuilder;

Modules§

dynamic
Dynamic thread pool implementation.
fixed
Fixed-size thread pool implementation.

Structs§

PoolJob
Type-erased pool job with separate detached and cancellable forms.
StopReport
Summary returned by an immediate executor-service stop request.
TaskHandle
Lightweight result handle for a submitted callable task.
ThreadPoolHooks
Worker and task lifecycle hooks shared by thread-pool implementations.
ThreadPoolStats
Point-in-time counters reported by crate::ThreadPool.
TrackedTask
Result handle with active status tracking and pre-start cancellation.

Enums§

CancelResult
Result of an attempt to cancel a tracked task.
ExecutorServiceBuilderError
Error returned when an executor service cannot be built.
ExecutorServiceLifecycle
Lifecycle state for a managed executor service.
SubmissionError
Error returned when an executor service refuses to accept a task.
TaskExecutionError
Error observed when retrieving the result of an accepted task.
TaskStatus
Observable lifecycle status for a submitted task.
TryGet
Result of a non-blocking attempt to retrieve a task result.

Traits§

ExecutorService
Managed task service with submission and lifecycle control.
TaskResultHandle
Common interface for handles that expose a submitted task’s final result.
TrackedTaskHandle
Extension interface for handles that expose active task tracking.

Type Aliases§

TaskResult
Result type used by managed task handles.