Skip to main content

qubit_execution_services/
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 Execution Services
11//!
12//! Aggregated execution services facade for blocking, CPU-bound, Tokio blocking,
13//! and async IO tasks.
14//!
15
16mod execution_services;
17mod execution_services_build_error;
18mod execution_services_builder;
19mod execution_services_shutdown_report;
20
21pub use execution_services::{
22    BlockingExecutorService,
23    BlockingExecutorServiceBuilder,
24    ExecutionServices,
25    TokioBlockingExecutorService,
26};
27pub use execution_services_build_error::ExecutionServicesBuildError;
28pub use execution_services_builder::ExecutionServicesBuilder;
29pub use execution_services_shutdown_report::ExecutionServicesShutdownReport;
30pub use qubit_executor::TaskHandle;
31pub use qubit_executor::service::{
32    ExecutorService,
33    RejectedExecution,
34    ShutdownReport,
35};
36pub use qubit_rayon_executor::{
37    RayonExecutorService,
38    RayonExecutorServiceBuildError,
39    RayonExecutorServiceBuilder,
40    RayonTaskHandle,
41};
42pub use qubit_thread_pool::{
43    ThreadPool,
44    ThreadPoolBuildError,
45    ThreadPoolBuilder,
46};
47pub use qubit_tokio_executor::{
48    TokioExecutorService,
49    TokioIoExecutorService,
50    TokioTaskHandle,
51};