Files
tokio/tokio-util/src/task/mod.rs
T

26 lines
662 B
Rust
Raw Normal View History

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;
#[doc(inline)]
2025-08-03 08:58:28 +01:00
pub use task_tracker::TaskTracker;
2025-08-03 08:58:28 +01:00
mod abort_on_drop;
pub use abort_on_drop::AbortOnDropHandle;
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};