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 delayed;
16pub mod dynamic;
17pub mod fixed;
18mod pool_job;
19mod thread_pool_hooks;
20mod thread_pool_stats;
21
22pub use delayed::{
23    DelayedTaskHandle,
24    DelayedTaskScheduler,
25};
26pub use dynamic::{
27    ThreadPool,
28    ThreadPoolBuilder,
29};
30pub use fixed::{
31    FixedThreadPool,
32    FixedThreadPoolBuilder,
33};
34pub use pool_job::PoolJob;
35pub use qubit_executor::service::{
36    ExecutorService,
37    ExecutorServiceBuilderError,
38    ExecutorServiceLifecycle,
39    StopReport,
40    SubmissionError,
41};
42pub use qubit_executor::task::spi::{
43    TaskResultHandle,
44    TrackedTaskHandle,
45};
46pub use qubit_executor::{
47    CancelResult,
48    TaskExecutionError,
49    TaskHandle,
50    TaskResult,
51    TaskStatus,
52    TrackedTask,
53    TryGet,
54};
55pub use thread_pool_hooks::ThreadPoolHooks;
56pub use thread_pool_stats::ThreadPoolStats;