Skip to main content

qubit_thread_pool/
lib.rs

1/*******************************************************************************
2 *
3 *    Copyright (c) 2025 - 2026 Haixing Hu.
4 *
5 *    SPDX-License-Identifier: Apache-2.0
6 *
7 *    Licensed under the Apache License, Version 2.0.
8 *
9 ******************************************************************************/
10//! # Qubit Thread Pool
11//!
12//! Dynamic and fixed-size thread pool executor services.
13//!
14
15pub mod dynamic;
16pub mod fixed;
17mod pool_job;
18mod thread_pool_hooks;
19mod thread_pool_stats;
20
21pub use dynamic::{
22    ThreadPool,
23    ThreadPoolBuilder,
24};
25pub use fixed::{
26    FixedThreadPool,
27    FixedThreadPoolBuilder,
28};
29pub use pool_job::PoolJob;
30pub use qubit_executor::service::{
31    ExecutorService,
32    ExecutorServiceBuilderError,
33    ExecutorServiceLifecycle,
34    StopReport,
35    SubmissionError,
36};
37pub use qubit_executor::task::spi::{
38    TaskResultHandle,
39    TrackedTaskHandle,
40};
41pub use qubit_executor::{
42    CancelResult,
43    TaskExecutionError,
44    TaskHandle,
45    TaskResult,
46    TaskStatus,
47    TrackedTask,
48    TryGet,
49};
50pub use thread_pool_hooks::ThreadPoolHooks;
51pub use thread_pool_stats::ThreadPoolStats;