2022-01-27 06:26:09 -08:00
|
|
|
//! Extra utilities for spawning tasks
|
2025-08-03 08:58:28 +01:00
|
|
|
//!
|
|
|
|
|
//! This module is only available when the `rt` feature is enabled. Note that enabling the
|
|
|
|
|
//! `join-map` feature will automatically also enable the `rt` feature.
|
2022-01-27 06:26:09 -08:00
|
|
|
|
2025-08-03 08:58:28 +01:00
|
|
|
cfg_rt! {
|
|
|
|
|
mod spawn_pinned;
|
|
|
|
|
pub use spawn_pinned::LocalPoolHandle;
|
2022-04-26 10:25:48 -07:00
|
|
|
|
2025-08-03 08:58:28 +01:00
|
|
|
pub mod task_tracker;
|
2025-08-08 15:54:25 +08:00
|
|
|
#[doc(inline)]
|
2025-08-03 08:58:28 +01:00
|
|
|
pub use task_tracker::TaskTracker;
|
2023-10-22 16:35:19 +02:00
|
|
|
|
2025-08-03 08:58:28 +01:00
|
|
|
mod abort_on_drop;
|
|
|
|
|
pub use abort_on_drop::AbortOnDropHandle;
|
2025-09-20 09:38:59 +02:00
|
|
|
|
|
|
|
|
mod join_queue;
|
|
|
|
|
pub use join_queue::JoinQueue;
|
2025-08-03 08:58:28 +01:00
|
|
|
}
|
2024-08-20 10:58:04 +02:00
|
|
|
|
2025-08-03 08:58:28 +01:00
|
|
|
#[cfg(feature = "join-map")]
|
|
|
|
|
mod join_map;
|
|
|
|
|
#[cfg(feature = "join-map")]
|
|
|
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "join-map")))]
|
|
|
|
|
pub use join_map::{JoinMap, JoinMapKeys};
|